OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
658c520
)
bit: require at least 1 frame for probing
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 00:43:36 +0000
(
02:43
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 16 Oct 2011 00:43:36 +0000
(
02:43
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bit.c
patch
|
blob
|
history
diff --git
a/libavformat/bit.c
b/libavformat/bit.c
index
7400d24
..
d72d2a8
100644
(file)
--- a/
libavformat/bit.c
+++ b/
libavformat/bit.c
@@
-12,6
+12,9
@@
static int probe(AVProbeData *p)
{
int i, j;
+ if(p->buf_size < 0x40)
+ return 0;
+
for(i=0; i+3<p->buf_size && i< 10*0x50; ){
if(AV_RL16(&p->buf[0]) != SYNC_WORD)
return 0;