mpegts: do not output known sized packet if an unbounded packet is already queued.

Fix issue #2624.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/2/head
Baptiste Coudurier 14 years ago committed by Anton Khirnov
parent 9c3f5ef663
commit 6ae38aa3ce
  1. 2
      libavformat/mpegts.c

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

Loading…
Cancel
Save