X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-ms%2Fsrc%2Fcodecs%2Fmsvideo1enc.rs;h=cdad0ce2aa49a2e9b50f624b85d1efe2bda85fcc;hb=d3985caa3bfd7bc93493ca8ec62ef8423d46c129;hp=b2233c230b7de7061dba27371da5c2fb12d72fee;hpb=78fb6560c73965d834b215fb0b49505ae5443288;p=nihav.git diff --git a/nihav-ms/src/codecs/msvideo1enc.rs b/nihav-ms/src/codecs/msvideo1enc.rs index b2233c2..cdad0ce 100644 --- a/nihav-ms/src/codecs/msvideo1enc.rs +++ b/nihav-ms/src/codecs/msvideo1enc.rs @@ -432,7 +432,7 @@ impl NAEncoder for MSVideo1Encoder { let out_info = NAVideoInfo::new(vinfo.width, vinfo.height, true, RGB555_FORMAT); let info = NACodecInfo::new("msvideo1", NACodecTypeInfo::Video(out_info), None); - let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den); + let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den, 0); stream.set_num(stream_id as usize); let stream = stream.into_ref(); if self.pool.prealloc_video(out_info, 2).is_err() { @@ -571,6 +571,6 @@ mod test { }; //test_encoding_to_file(&dec_config, &enc_config, enc_params); test_encoding_md5(&dec_config, &enc_config, enc_params, - &[0x8f0d3f66, 0xb91a6ee5, 0x59e4933e, 0x59c6fb0b]); + &[0x0fc27a11, 0x04337f5d, 0xb8037362, 0xc4f69d8b]); } }