]> git.nihav.org Git - nihav.git/commitdiff
cinepakenc: ask for non-flipped image during negotiation
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 10 Jul 2020 15:46:23 +0000 (17:46 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 10 Jul 2020 15:46:23 +0000 (17:46 +0200)
nihav-commonfmt/src/codecs/cinepakenc.rs

index 95994eedae1f73dd2107841a29c52b1fd88371b3..a7cf8c0fca39f73794968833f6642080688bad45 100644 (file)
@@ -920,7 +920,7 @@ impl NAEncoder for CinepakEncoder {
             NACodecTypeInfo::Audio(_) => Err(EncoderError::FormatError),
             NACodecTypeInfo::Video(vinfo) => {
                 let pix_fmt = if vinfo.format == GRAY_FORMAT { GRAY_FORMAT } else { YUV420_FORMAT };
-                let outinfo = NAVideoInfo::new((vinfo.width + 3) & !3, (vinfo.height + 3) & !3, true, pix_fmt);
+                let outinfo = NAVideoInfo::new((vinfo.width + 3) & !3, (vinfo.height + 3) & !3, false, pix_fmt);
                 let mut ofmt = *encinfo;
                 ofmt.format = NACodecTypeInfo::Video(outinfo);
                 Ok(ofmt)