diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-06-05 15:59:28 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-06-05 15:59:28 +0200 |
commit | d722ffe95d298490b0ebb3278d6749b7cf59e4fb (patch) | |
tree | 982afba106af8f1059133b389ac0881c43750bfc /nihav-commonfmt/src | |
parent | 575959e8472949f202277b2cac0225a63ab1acdd (diff) | |
download | nihav-d722ffe95d298490b0ebb3278d6749b7cf59e4fb.tar.gz |
copy encoding parameters from the reference when negotiating the format
Diffstat (limited to 'nihav-commonfmt/src')
-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 d40f504..10e0a36 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -873,7 +873,7 @@ impl NAEncoder for CinepakEncoder { 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 mut ofmt = EncodeParameters::default(); + let mut ofmt = *encinfo; ofmt.format = NACodecTypeInfo::Video(outinfo); Ok(ofmt) } |