1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

In mpegts demuxer, do not output known sized packet if an unbounded packet

is already queued. Fix issue #2624.
This commit is contained in:
Baptiste Coudurier 2011-02-27 16:19:50 -08:00
parent e9634db1dc
commit 4ea02a9a71

View File

@ -809,7 +809,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
* a couple of seconds to milliseconds for properly muxed files.
* total_size is the number of bytes following pes_packet_length
* in the pes header, i.e. not counting the first 6 bytes */
if (pes->total_size < MAX_PES_PAYLOAD &&
if (!ts->stop_parse && pes->total_size < MAX_PES_PAYLOAD &&
pes->pes_header_size + pes->data_index == pes->total_size + 6) {
ts->stop_parse = 1;
new_pes_packet(pes, ts->pkt);