diff options
author | Peter Ross <pross@xvid.org> | 2013-01-06 14:15:25 +1100 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2013-01-07 23:14:58 +1100 |
commit | 361ecb6176242f8d86c36cea7233b233280eadc7 (patch) | |
tree | 70103cc8bee897bdc3e66f8268b080d773b876b3 /libavformat | |
parent | 508836932fcbc3c109fcc4df7a2f2b0bf21bbece (diff) | |
download | ffmpeg-361ecb6176242f8d86c36cea7233b233280eadc7.tar.gz |
wtvdec: ignore WM/MediaThumbType metadata entry
This tag is used by Windows Media Centre in displaying the thumbnail,
and should be transformed into FFmpeg metadata string.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/wtvdec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c index 5e9c817856..88daa095b9 100644 --- a/libavformat/wtvdec.c +++ b/libavformat/wtvdec.c @@ -450,7 +450,10 @@ static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int ty if (!buf) return; - if (type == 0 && length == 4) { + if (!strcmp(key, "WM/MediaThumbType")) { + avio_skip(pb, length); + return; + } else if (type == 0 && length == 4) { snprintf(buf, buf_size, "%"PRIi32, avio_rl32(pb)); } else if (type == 1) { avio_get_str16le(pb, length, buf, buf_size); |