diff asf.c @ 831:8e1b338096a0 libavformat

changes to ignore command media embedded in MS WMV files patch by ("Brown, Mike": mikeb, vibephone com)
author michael
date Wed, 10 Aug 2005 23:41:20 +0000
parents a5af9ba25343
children 66cc656ea404
line wrap: on
line diff
--- a/asf.c	Mon Aug 01 20:07:05 2005 +0000
+++ b/asf.c	Wed Aug 10 23:41:20 2005 +0000
@@ -51,6 +51,7 @@
     else PRINT_IF_GUID(g, audio_conceal_none);
     else PRINT_IF_GUID(g, video_stream);
     else PRINT_IF_GUID(g, video_conceal_none);
+    else PRINT_IF_GUID(g, command_stream);
     else PRINT_IF_GUID(g, comment_header);
     else PRINT_IF_GUID(g, codec_comment_header);
     else PRINT_IF_GUID(g, codec_comment1_header);
@@ -204,6 +205,8 @@
                 type = CODEC_TYPE_AUDIO;
             } else if (!memcmp(&g, &video_stream, sizeof(GUID))) {
                 type = CODEC_TYPE_VIDEO;
+            } else if (!memcmp(&g, &command_stream, sizeof(GUID))) {
+                type = CODEC_TYPE_UNKNOWN;
             } else {
                 goto fail;
             }