comparison asfdec.c @ 5718:db8bae128461 libavformat

asfdec: don't strip the "WM/" prefix, this should be done during conversion. Patch by Anton Khirnov wyskas gmail com
author benoit
date Thu, 25 Feb 2010 16:38:23 +0000
parents ead2df871971
children e3ec6991698b
comparison
equal deleted inserted replaced
5717:da72d7a76598 5718:db8bae128461
173 url_fskip(s->pb, len); 173 url_fskip(s->pb, len);
174 av_freep(&value); 174 av_freep(&value);
175 av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key); 175 av_log(s, AV_LOG_DEBUG, "Unsupported value type %d in tag %s.\n", type, key);
176 return; 176 return;
177 } 177 }
178 if (!strncmp(key, "WM/", 3))
179 key += 3;
180 av_metadata_set2(&s->metadata, key, value, 0); 178 av_metadata_set2(&s->metadata, key, value, 0);
181 av_freep(&value); 179 av_freep(&value);
182 } 180 }
183 181
184 static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap) 182 static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)