git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c439f6
)
avformat/lvfdec: check stream count during probing
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Nov 2013 16:03:42 +0000
(17:03 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 8 Nov 2013 16:03:42 +0000
(17:03 +0100)
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/lvfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/lvfdec.c
b/libavformat/lvfdec.c
index
a809c67
..
d4bad12
100644
(file)
--- a/
libavformat/lvfdec.c
+++ b/
libavformat/lvfdec.c
@@
-25,9
+25,13
@@
static int lvf_probe(AVProbeData *p)
{
- if (AV_RL32(p->buf) == MKTAG('L', 'V', 'F', 'F'))
- return AVPROBE_SCORE_EXTENSION;
- return 0;
+ if (AV_RL32(p->buf) != MKTAG('L', 'V', 'F', 'F'))
+ return 0;
+
+ if (!AV_RL32(p->buf + 16) || AV_RL32(p->buf + 16) > 256)
+ return 0;
+
+ return AVPROBE_SCORE_EXTENSION;
}
static int lvf_read_header(AVFormatContext *s)