From: Kostya Shishkov Date: Sat, 23 May 2020 16:44:54 +0000 (+0200) Subject: avi: do not ignore guessed format X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;ds=sidebyside;h=045d52bd013b3b56b5ad79c6333da9f8f7bfd3d1;p=nihav.git avi: do not ignore guessed format --- diff --git a/nihav-commonfmt/src/demuxers/avi.rs b/nihav-commonfmt/src/demuxers/avi.rs index a966460..ed4edd4 100644 --- a/nihav-commonfmt/src/demuxers/avi.rs +++ b/nihav-commonfmt/src/demuxers/avi.rs @@ -409,7 +409,7 @@ fn parse_strf_vids(dmx: &mut AVIDemuxer, strmgr: &mut StreamManager, size: usize let flip = height < 0; let format = if bitcount > 8 { RGB24_FORMAT } else { PAL8_FORMAT }; - let vhdr = NAVideoInfo::new(width as usize, if flip { -height as usize } else { height as usize}, flip, PAL8_FORMAT); + let vhdr = NAVideoInfo::new(width as usize, if flip { -height as usize } else { height as usize}, flip, format); let vci = NACodecTypeInfo::Video(vhdr); let edata = dmx.read_extradata(size - 40)?; if colors > 0 {