提交 f8a9cf77 编写于 作者: M Michael Niedermayer

avformat/lvfdec: check stream count during probing

Fixes probetest failure
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 4c439f6e
...@@ -25,9 +25,13 @@ ...@@ -25,9 +25,13 @@
static int lvf_probe(AVProbeData *p) static int lvf_probe(AVProbeData *p)
{ {
if (AV_RL32(p->buf) == MKTAG('L', 'V', 'F', 'F')) if (AV_RL32(p->buf) != MKTAG('L', 'V', 'F', 'F'))
return AVPROBE_SCORE_EXTENSION; return 0;
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) static int lvf_read_header(AVFormatContext *s)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册