From be0395103af035d32f0e6bf57befe773849d742c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 28 Mar 2009 03:54:31 +0000 Subject: [PATCH] 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 . Originally committed as revision 18213 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/asfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index af0b752c4b..16956efa1c 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -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); }