changeset 1065:fab79efcd476 libavformat

report to user if mmf with midi found (and not supported)
author alex
date Thu, 20 Apr 2006 22:17:11 +0000
parents bd570485d419
children 716c75917a10
files mmf.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mmf.c	Thu Apr 20 10:38:15 2006 +0000
+++ b/mmf.c	Thu Apr 20 22:17:11 2006 +0000
@@ -202,6 +202,10 @@
     }
 
     /* Tag = "ATRx", where "x" = track number */
+    if ((tag & 0xffffff) == MKTAG('M', 'T', 'R', 0)) {
+        av_log(s, AV_LOG_ERROR, "MIDI like format found, unsupported\n");
+        return -1;
+    }
     if ((tag & 0xffffff) != MKTAG('A', 'T', 'R', 0)) {
         av_log(s, AV_LOG_ERROR, "Unsupported SMAF chunk %08x\n", tag);
         return -1;