mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
mpegtsenc: fix 10l typo, wrong stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3700f655c5
commit
6bb35f4351
@ -1077,10 +1077,10 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
|
||||
MpegTSWriteStream *ts_st2 = st2->priv_data;
|
||||
if( ts_st2->payload_size
|
||||
&& ts_st2->payload_dts == AV_NOPTS_VALUE || dts - ts_st2->payload_dts > delay/2){
|
||||
mpegts_write_pes(s, st, ts_st->payload, ts_st->payload_size,
|
||||
ts_st->payload_pts, ts_st->payload_dts,
|
||||
ts_st->payload_flags & AV_PKT_FLAG_KEY);
|
||||
ts_st->payload_size = 0;
|
||||
mpegts_write_pes(s, st2, ts_st2->payload, ts_st2->payload_size,
|
||||
ts_st2->payload_pts, ts_st2->payload_dts,
|
||||
ts_st2->payload_flags & AV_PKT_FLAG_KEY);
|
||||
ts_st2->payload_size = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user