projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4496599
)
fix probe of 001.vdr-broken-6025
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 29 Mar 2007 20:22:38 +0000
(20:22 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 29 Mar 2007 20:22:38 +0000
(20:22 +0000)
Originally committed as revision 8550 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/raw.c
patch
|
blob
|
history
diff --git
a/libavformat/raw.c
b/libavformat/raw.c
index
ee43e39
..
73a2037
100644
(file)
--- a/
libavformat/raw.c
+++ b/
libavformat/raw.c
@@
-337,9
+337,9
@@
static int mpegvideo_probe(AVProbeData *p)
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)