Browse Source

avformat/bethsoftvid: check 4th header byte in probe

Fixes probetest failure

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

+ 3
- 0
libavformat/bethsoftvid.c View File

@@ -61,6 +61,9 @@ static int vid_probe(AVProbeData *p)
if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0))
return 0; return 0;


if (p->buf[4] != 2)
return AVPROBE_SCORE_MAX / 4;

return AVPROBE_SCORE_MAX; return AVPROBE_SCORE_MAX;
} }




Loading…
Cancel
Save