examples/remux: fix stream_index of copied packets

This commit is contained in:
Zhiming Wang 2020-08-15 10:18:56 +08:00
parent c3297c9700
commit b962e4f9f6
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -51,6 +51,7 @@ fn main() {
let ost = octx.stream(ost_index as _).unwrap();
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();
}