mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '84b721db366c0734fdfd23c8daaa7da7da21f761'
* commit '84b721db366c0734fdfd23c8daaa7da7da21f761': asfdec: also read Metadata Library Object Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
30085bd43e
@ -109,6 +109,10 @@ const ff_asf_guid ff_asf_metadata_header = {
|
|||||||
0xea, 0xcb, 0xf8, 0xc5, 0xaf, 0x5b, 0x77, 0x48, 0x84, 0x67, 0xaa, 0x8c, 0x44, 0xfa, 0x4c, 0xca
|
0xea, 0xcb, 0xf8, 0xc5, 0xaf, 0x5b, 0x77, 0x48, 0x84, 0x67, 0xaa, 0x8c, 0x44, 0xfa, 0x4c, 0xca
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const ff_asf_guid ff_asf_metadata_library_header = {
|
||||||
|
0x94, 0x1c, 0x23, 0x44, 0x98, 0x94, 0xd1, 0x49, 0xa1, 0x41, 0x1d, 0x13, 0x4e, 0x45, 0x70, 0x54
|
||||||
|
};
|
||||||
|
|
||||||
const ff_asf_guid ff_asf_marker_header = {
|
const ff_asf_guid ff_asf_marker_header = {
|
||||||
0x01, 0xCD, 0x87, 0xF4, 0x51, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65
|
0x01, 0xCD, 0x87, 0xF4, 0x51, 0xA9, 0xCF, 0x11, 0x8E, 0xE6, 0x00, 0xC0, 0x0C, 0x20, 0x53, 0x65
|
||||||
};
|
};
|
||||||
|
@ -110,6 +110,7 @@ extern const ff_asf_guid ff_asf_simple_index_header;
|
|||||||
extern const ff_asf_guid ff_asf_ext_stream_embed_stream_header;
|
extern const ff_asf_guid ff_asf_ext_stream_embed_stream_header;
|
||||||
extern const ff_asf_guid ff_asf_ext_stream_audio_stream;
|
extern const ff_asf_guid ff_asf_ext_stream_audio_stream;
|
||||||
extern const ff_asf_guid ff_asf_metadata_header;
|
extern const ff_asf_guid ff_asf_metadata_header;
|
||||||
|
extern const ff_asf_guid ff_asf_metadata_library_header;
|
||||||
extern const ff_asf_guid ff_asf_marker_header;
|
extern const ff_asf_guid ff_asf_marker_header;
|
||||||
extern const ff_asf_guid ff_asf_my_guid;
|
extern const ff_asf_guid ff_asf_my_guid;
|
||||||
extern const ff_asf_guid ff_asf_language_guid;
|
extern const ff_asf_guid ff_asf_language_guid;
|
||||||
|
@ -132,6 +132,7 @@ static void print_guid(ff_asf_guid *g)
|
|||||||
else PRINT_IF_GUID(g, ff_asf_ext_stream_embed_stream_header);
|
else PRINT_IF_GUID(g, ff_asf_ext_stream_embed_stream_header);
|
||||||
else PRINT_IF_GUID(g, ff_asf_ext_stream_audio_stream);
|
else PRINT_IF_GUID(g, ff_asf_ext_stream_audio_stream);
|
||||||
else PRINT_IF_GUID(g, ff_asf_metadata_header);
|
else PRINT_IF_GUID(g, ff_asf_metadata_header);
|
||||||
|
else PRINT_IF_GUID(g, ff_asf_metadata_library_header);
|
||||||
else PRINT_IF_GUID(g, ff_asf_marker_header);
|
else PRINT_IF_GUID(g, ff_asf_marker_header);
|
||||||
else PRINT_IF_GUID(g, stream_bitrate_guid);
|
else PRINT_IF_GUID(g, stream_bitrate_guid);
|
||||||
else PRINT_IF_GUID(g, ff_asf_language_guid);
|
else PRINT_IF_GUID(g, ff_asf_language_guid);
|
||||||
@ -289,6 +290,9 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len, int
|
|||||||
} else if (type == 1 && !strcmp(key, "WM/Picture")) { // handle cover art
|
} else if (type == 1 && !strcmp(key, "WM/Picture")) { // handle cover art
|
||||||
asf_read_picture(s, len);
|
asf_read_picture(s, len);
|
||||||
goto finish;
|
goto finish;
|
||||||
|
} else if (type == 6) { // (don't) handle GUID
|
||||||
|
av_log(s, AV_LOG_DEBUG, "Unsupported GUID value in tag %s.\n", key);
|
||||||
|
goto finish;
|
||||||
} else {
|
} else {
|
||||||
av_log(s, AV_LOG_DEBUG,
|
av_log(s, AV_LOG_DEBUG,
|
||||||
"Unsupported value type %d in tag %s.\n", type, key);
|
"Unsupported value type %d in tag %s.\n", type, key);
|
||||||
@ -744,6 +748,8 @@ static int asf_read_header(AVFormatContext *s)
|
|||||||
asf_read_ext_content_desc(s, gsize);
|
asf_read_ext_content_desc(s, gsize);
|
||||||
} else if (!ff_guidcmp(&g, &ff_asf_metadata_header)) {
|
} else if (!ff_guidcmp(&g, &ff_asf_metadata_header)) {
|
||||||
asf_read_metadata(s, gsize);
|
asf_read_metadata(s, gsize);
|
||||||
|
} else if (!ff_guidcmp(&g, &ff_asf_metadata_library_header)) {
|
||||||
|
asf_read_metadata(s, gsize);
|
||||||
} else if (!ff_guidcmp(&g, &ff_asf_ext_stream_header)) {
|
} else if (!ff_guidcmp(&g, &ff_asf_ext_stream_header)) {
|
||||||
asf_read_ext_stream_properties(s, gsize);
|
asf_read_ext_stream_properties(s, gsize);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user