examples/transcode-x264: fix stream_index of copied packets

Signed-off-by: Zhiming Wang <i@zhimingwang.org>
This commit is contained in:
Maor Kleinberger 2020-08-15 01:39:08 +03:00 committed by Zhiming Wang
parent c1ae33b5a5
commit c3297c9700
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -246,6 +246,7 @@ fn main() {
// Do stream copy on non-video streams.
packet.rescale_ts(ist_time_bases[ist_index], ost_time_base);
packet.set_position(-1);
packet.set_stream(ost_index as _);
packet.write_interleaved(&mut octx).unwrap();
}
}