mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-15 02:58:01 +00:00
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.
This commit is contained in:
parent
508836932f
commit
361ecb6176
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user