[FFmpeg-cvslog] avformat/msf: Also check the codec tag in probing

Michael Niedermayer git at videolan.org
Mon Feb 29 19:36:02 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Feb 29 13:53:13 2016 +0100| [a6cd817a544e4e526f18391bd2c7112dc12d2f94] | committer: Michael Niedermayer

avformat/msf: Also check the codec tag in probing

Fixes probing failure

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a6cd817a544e4e526f18391bd2c7112dc12d2f94
---

 libavformat/msf.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/msf.c b/libavformat/msf.c
index 73a5a01..97a6dc6 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;
 }
 



More information about the ffmpeg-cvslog mailing list