[FFmpeg-devel] [PATCH] asf fix

David DeHaven dave
Fri Mar 27 17:46:41 CET 2009


asfdec.c:get_tag() was cropping the first three chars on non "WM/"  
prefixed tags.

Any interest in a -dumpmetadata option? I find it very useful for  
debugging...

-DrD-

Index: libavformat/asfdec.c
===================================================================
--- libavformat/asfdec.c	(revision 18202)
+++ libavformat/asfdec.c	(working copy)
@@ -158,7 +158,7 @@
          url_fskip(s->pb, len);
          return;
      }
-    if (strncmp(key, "WM/", 3))
+    if (!strncmp(key, "WM/", 3))
          key += 3;
      av_metadata_set(&s->metadata, key, value);
  }




More information about the ffmpeg-devel mailing list