diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-11 14:04:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-11 14:13:07 +0200 |
commit | 6bb35f435129db1cc6aa0ca4b847408499010745 (patch) | |
tree | 8cbe428c2473af92b4a00760f6de9baec0ffcc03 | |
parent | 3700f655c55e2001b57215210b957b169d66b50f (diff) | |
download | ffmpeg-6bb35f435129db1cc6aa0ca4b847408499010745.tar.gz |
mpegtsenc: fix 10l typo, wrong stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegtsenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 25ca1b035d..793e2051d4 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -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; } } } |