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:
nicodvb 2006-10-28 09:03:51 +00:00
parent 5f569045d4
commit fd08f0490e
1 changed files with 6 additions and 6 deletions

View File

@ -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