[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mmf.c,1.7,1.8

Alex Beregszaszi alex
Fri Apr 21 00:17:14 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv14224

Modified Files:
	mmf.c 
Log Message:
report to user if mmf with midi found (and not supported)

Index: mmf.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mmf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- mmf.c	19 Jan 2006 22:30:37 -0000	1.7
+++ mmf.c	20 Apr 2006 22:17:11 -0000	1.8
@@ -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;





More information about the ffmpeg-cvslog mailing list