debug win, without hwcodec

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-02-22 09:43:57 +08:00
parent 77c4a14845
commit 173e3bcd0d
5 changed files with 39 additions and 21 deletions

View File

@@ -945,9 +945,9 @@ impl VideoHandler {
match &vf.union {
Some(frame) => {
#[cfg(feature = "flutter_texture_render")]
let fmt = ImageFormat::ARGB;
#[cfg(not(feature = "flutter_texture_render"))]
let fmt = ImageFormat::ABGR;
#[cfg(not(feature = "flutter_texture_render"))]
let fmt = ImageFormat::ARGB;
let res = self.decoder.handle_video_frame(frame, fmt, &mut self.rgb);
if self.record {
self.recorder