From e5b5248d8e4f0b6be84db2d00158a9dcdff0d512 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Wed, 29 Sep 2021 16:39:45 +0200 Subject: [PATCH] avimux: always write positive height in stream properties --- nihav-commonfmt/src/muxers/avi.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/nihav-commonfmt/src/muxers/avi.rs b/nihav-commonfmt/src/muxers/avi.rs index 18d17ba..00b3e6d 100644 --- a/nihav-commonfmt/src/muxers/avi.rs +++ b/nihav-commonfmt/src/muxers/avi.rs @@ -171,11 +171,7 @@ impl<'a> MuxCore<'a> for AVIMuxer<'a> { let hdr_pos = self.bw.tell(); self.bw.write_u32le(0)?; self.bw.write_u32le(vinfo.width as u32)?; - if vinfo.flipped { - self.bw.write_u32le((-(vinfo.height as i32)) as u32)?; - } else { - self.bw.write_u32le(vinfo.height as u32)?; - } + self.bw.write_u32le(vinfo.height as u32)?; self.bw.write_u16le(vinfo.format.components as u16)?; self.bw.write_u16le(vinfo.format.get_total_depth() as u16)?; let fcc = find_avi_fourcc(str.get_info().get_name()); -- 2.39.5