diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-11 17:26:03 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-11 17:50:51 +0100 |
commit | f66f3819b96847cd28589b718dbcd03b782e7a5c (patch) | |
tree | c351e69466abe3f0cb6b84bbfde14e5453ae37b5 /libavformat/bethsoftvid.c | |
parent | 650fd9c004e0093dacf928a015947f7490c0dfbf (diff) | |
download | ffmpeg-f66f3819b96847cd28589b718dbcd03b782e7a5c.tar.gz |
avformat/bethsoftvid: check 4th header byte in probe
Fixes probetest failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/bethsoftvid.c')
-rw-r--r-- | libavformat/bethsoftvid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index b8f08c1f87..6b84b790f3 100644 --- a/libavformat/bethsoftvid.c +++ b/libavformat/bethsoftvid.c @@ -61,6 +61,9 @@ static int vid_probe(AVProbeData *p) if (AV_RL32(p->buf) != MKTAG('V', 'I', 'D', 0)) return 0; + if (p->buf[4] != 2) + return AVPROBE_SCORE_MAX / 4; + return AVPROBE_SCORE_MAX; } |