Ignore key and time signatures - we don't have a metronome, and we don't print sheet...
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 11 Oct 2007 16:45:11 +0000 (16:45 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 11 Oct 2007 16:45:11 +0000 (16:45 +0000)
modules/demux/smf.c

index df0b0f5..b23990a 100644 (file)
@@ -366,13 +366,29 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
             break;
 
         case 0x54: /* SMPTE offset */
             break;
 
         case 0x54: /* SMPTE offset */
+            if (length == 5)
+                msg_Warn (p_demux, "SMPTE offset not implemented");
+            else
+                ret = -1;
+            break;
+
         case 0x58: /* Time signature */
         case 0x58: /* Time signature */
+            if (length == 4)
+                ;
+            else
+                ret = -1;
+            break;
+
         case 0x59: /* Key signature */
         case 0x59: /* Key signature */
-            msg_Warn (p_demux, "unimplemented SMF Meta Event type 0x%02X (%d bytes)",
-                      type, length);
+            if (length == 2)
+                ;
+            else
+                ret = -1;
             break;
 
         case 0x7f: /* Proprietary event */
             break;
 
         case 0x7f: /* Proprietary event */
+            msg_Dbg (p_demux, "ignored proprietary SMF Meta Event (%d bytes)",
+                     length);
             break;
 
         default:
             break;
 
         default: