Browse Source

avformat/lvfdec: check stream count during probing

Fixes probetest failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 11 years ago
parent
commit
f8a9cf7704
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      libavformat/lvfdec.c

+ 7
- 3
libavformat/lvfdec.c View File

@@ -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)


Loading…
Cancel
Save