Don't strip the first three characters off of any metadata in ASF file.
authorRonald S. Bultje <rsbultje@gmail.com>
Sat, 28 Mar 2009 03:54:31 +0000 (03:54 +0000)
committerRonald S. Bultje <rsbultje@gmail.com>
Sat, 28 Mar 2009 03:54:31 +0000 (03:54 +0000)
See "[FFmpeg-devel] [PATCH] asf fix" thread. Patch contributed by
David DeHaven <dave sagetv com>.

Originally committed as revision 18213 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/asfdec.c

index af0b752c4bf401a3b549e76614b96f970bd5ac69..16956efa1c845190ae7c494918bce07653a6bb96 100644 (file)
@@ -158,7 +158,7 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len)
         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);
 }