mirror of https://github.com/mpv-player/mpv
10l: fixed misplaced adaption field check
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5f569045d4
commit
fd08f0490e
|
@ -2622,6 +2622,12 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
|
||||||
bad = ts_error; // || (! cc_ok);
|
bad = ts_error; // || (! cc_ok);
|
||||||
|
|
||||||
afc = (packet[3] >> 4) & 3;
|
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)
|
if(afc > 1)
|
||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
|
@ -2637,12 +2643,6 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! (afc % 2)) //no payload in this TS packet
|
|
||||||
{
|
|
||||||
stream_skip(stream, buf_size-1+junk);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(bad)
|
if(bad)
|
||||||
{
|
{
|
||||||
// logically this packet should be dropped, but if I do it
|
// logically this packet should be dropped, but if I do it
|
||||||
|
|
Loading…
Reference in New Issue