X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;ds=sidebyside;f=nihav-commonfmt%2Fsrc%2Fcodecs%2Fcinepakenc.rs;h=10e0a3670530c77ab7fba835d87ecb38a7b96311;hb=d722ffe95d298490b0ebb3278d6749b7cf59e4fb;hp=d40f504dbc828d81aba036177c220e53bbb28cfe;hpb=575959e8472949f202277b2cac0225a63ab1acdd;p=nihav.git 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) }