diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-06-05 18:42:02 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-06-05 18:42:02 +0200 |
commit | 2ff5620166d8ce8b838b251d1fdd8de73f3f857c (patch) | |
tree | 081f0670c1535790f29b420780ae36a6db6c8475 /nihav-commonfmt/src | |
parent | 3c406629cabc3b77f9198646b0f93fc7e486e277 (diff) | |
download | nihav-2ff5620166d8ce8b838b251d1fdd8de73f3f857c.tar.gz |
set stream number in encoders too
Diffstat (limited to 'nihav-commonfmt/src')
-rw-r--r-- | nihav-commonfmt/src/codecs/cinepakenc.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nihav-commonfmt/src/codecs/cinepakenc.rs b/nihav-commonfmt/src/codecs/cinepakenc.rs index 645bd83..4271e1a 100644 --- a/nihav-commonfmt/src/codecs/cinepakenc.rs +++ b/nihav-commonfmt/src/codecs/cinepakenc.rs @@ -929,7 +929,9 @@ impl NAEncoder for CinepakEncoder { let out_info = NAVideoInfo::new(vinfo.width, vinfo.height, false, vinfo.format); let info = NACodecInfo::new("cinepak", NACodecTypeInfo::Video(out_info.clone()), None); - let stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den).into_ref(); + let mut stream = NAStream::new(StreamType::Video, stream_id, info, encinfo.tb_num, encinfo.tb_den); + stream.set_num(stream_id as usize); + let stream = stream.into_ref(); self.stream = Some(stream.clone()); self.quality = encinfo.quality; |