Mercurial > libavformat.hg
changeset 1965:f73b9a471583 libavformat
fix probe of 001.vdr-broken-6025
author | michael |
---|---|
date | Thu, 29 Mar 2007 20:22:38 +0000 |
parents | 4571a481081d |
children | 1185d826c6a7 |
files | raw.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/raw.c Thu Mar 29 10:45:34 2007 +0000 +++ b/raw.c Thu Mar 29 20:22:38 2007 +0000 @@ -337,9 +337,9 @@ case PICTURE_START_CODE: pic++; break; case SLICE_START_CODE: slice++; break; case PACK_START_CODE: pspack++; break; - case VIDEO_ID: - case AUDIO_ID: pes++; break; } + if ((code & 0x1f0) == VIDEO_ID) pes++; + else if((code & 0x1e0) == AUDIO_ID) pes++; } } if(seq && seq*9<=pic*10 && pic*9<=slice*10 && !pspack && !pes)