diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-29 13:53:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-29 19:25:01 +0100 |
commit | a6cd817a544e4e526f18391bd2c7112dc12d2f94 (patch) | |
tree | bfba8c6069e7c03b691d8245e054c691db3c02f6 /libavformat | |
parent | bb8cc89b2986df6f60831b67cd250da312cce1d0 (diff) | |
download | ffmpeg-a6cd817a544e4e526f18391bd2c7112dc12d2f94.tar.gz |
avformat/msf: Also check the codec tag in probing
Fixes probing failure
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/msf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/msf.c b/libavformat/msf.c index 73a5a0157d..97a6dc6929 100644 --- a/libavformat/msf.c +++ b/libavformat/msf.c @@ -34,6 +34,9 @@ static int msf_probe(AVProbeData *p) if (AV_RB32(p->buf+16) <= 0) return 0; + if (AV_RB32(p->buf+4) > 16) + return AVPROBE_SCORE_MAX / 5; //unsupported / unknown codec + return AVPROBE_SCORE_MAX / 3 * 2; } |