diff options
author | Kostya Shishkov <[email protected]> | 2021-09-29 16:39:45 +0200 |
---|---|---|
committer | Kostya Shishkov <[email protected]> | 2021-09-29 17:10:56 +0200 |
commit | e5b5248d8e4f0b6be84db2d00158a9dcdff0d512 (patch) | |
tree | 01b004448e8531eb8bcd71f74dfce0cd0e9fcd0b | |
parent | c9c5dcb10719920f3e5502e33e3ff224ae268e13 (diff) |
avimux: always write positive height in stream properties
-rw-r--r-- | nihav-commonfmt/src/muxers/avi.rs | 6 |
1 files changed, 1 insertions, 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()); |