diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-07-10 17:46:23 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-07-10 17:46:23 +0200 |
commit | 4abaf99e414dd4dd270e2703ee5e799a61aada88 (patch) | |
tree | d843e96d38fdc7f043495527f8045b2ecd89118a | |
parent | c82fed396735d41118b41672ebc28ed27e186959 (diff) | |
download | nihav-4abaf99e414dd4dd270e2703ee5e799a61aada88.tar.gz |
cinepakenc: ask for non-flipped image during negotiation
-rw-r--r-- | nihav-commonfmt/src/codecs/cinepakenc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs index 95994ee..a7cf8c0 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -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) |