From: Ronald S. Bultje Date: Sat, 28 Mar 2009 03:54:31 +0000 (+0000) Subject: Don't strip the first three characters off of any metadata in ASF file. X-Git-Tag: v0.6~5059 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/be0395103af035d32f0e6bf57befe773849d742c?hp=fa937faba442e3c8ce4ddf0b043cb75e4f21571f 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 --- diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index af0b752..16956ef 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); }