diff options
Diffstat (limited to 'libmpdemux/demux_ts.c')
-rw-r--r-- | libmpdemux/demux_ts.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 741ff346e3..0049e7c5ac 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -2622,6 +2622,12 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet, bad = ts_error; // || (! cc_ok); afc = (packet[3] >> 4) & 3; + if(! (afc % 2)) //no payload in this TS packet + { + stream_skip(stream, buf_size-1+junk); + continue; + } + if(afc > 1) { int c; @@ -2637,12 +2643,6 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet, continue; } - if(! (afc % 2)) //no payload in this TS packet - { - stream_skip(stream, buf_size-1+junk); - continue; - } - if(bad) { // logically this packet should be dropped, but if I do it |