examples/transcode-x264: fix stream_index of copied packets
Signed-off-by: Zhiming Wang <i@zhimingwang.org>
This commit is contained in:
parent
c1ae33b5a5
commit
c3297c9700
@ -246,6 +246,7 @@ fn main() {
|
|||||||
// Do stream copy on non-video streams.
|
// Do stream copy on non-video streams.
|
||||||
packet.rescale_ts(ist_time_bases[ist_index], ost_time_base);
|
packet.rescale_ts(ist_time_bases[ist_index], ost_time_base);
|
||||||
packet.set_position(-1);
|
packet.set_position(-1);
|
||||||
|
packet.set_stream(ost_index as _);
|
||||||
packet.write_interleaved(&mut octx).unwrap();
|
packet.write_interleaved(&mut octx).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user