changeset 4797:9145790397e6 libavformat

Don't strip the first three characters off of any metadata in ASF file. See "[FFmpeg-devel] [PATCH] asf fix" thread. Patch contributed by David DeHaven <dave sagetv com>.
author rbultje
date Sat, 28 Mar 2009 03:54:31 +0000
parents f48c56ac46c2
children 62a60b40cf45
files asfdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Fri Mar 27 21:36:44 2009 +0000
+++ b/asfdec.c	Sat Mar 28 03:54:31 2009 +0000
@@ -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);
 }