summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2009-03-28 03:54:31 +0000
committerRonald S. Bultje <rsbultje@gmail.com>2009-03-28 03:54:31 +0000
commitbe0395103af035d32f0e6bf57befe773849d742c (patch)
tree345bd0e19c3a58040bf440c48befd3089e21ff0f /libavformat
parentfa937faba442e3c8ce4ddf0b043cb75e4f21571f (diff)
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>. Originally committed as revision 18213 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/asfdec.c2
1 files changed, 1 insertions, 1 deletions
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);
}