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:
f66f381
)
avformat/dfa: check first frame offset in probe
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 11 Nov 2013 17:11:43 +0000
(18:11 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 11 Nov 2013 18:38:38 +0000
(19:38 +0100)
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/dfa.c
patch
|
blob
|
history
diff --git
a/libavformat/dfa.c
b/libavformat/dfa.c
index
12516af
..
9cd13e2
100644
(file)
--- a/
libavformat/dfa.c
+++ b/
libavformat/dfa.c
@@
-28,6
+28,9
@@
static int dfa_probe(AVProbeData *p)
if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
return 0;
+ if (AV_RL32(p->buf + 16) != 0x80)
+ return AVPROBE_SCORE_MAX / 4;
+
return AVPROBE_SCORE_MAX;
}