riff: Move guid structs and helper functions into riff
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
This commit is contained in:
committed by
Diego Biurrun
parent
8e329dba37
commit
e544782623
@ -374,6 +374,13 @@ const AVCodecTag ff_codec_wav_tags[] = {
|
||||
{ AV_CODEC_ID_NONE, 0 },
|
||||
};
|
||||
|
||||
const AVCodecGuid ff_codec_wav_guids[] = {
|
||||
{ AV_CODEC_ID_AC3, { 0x2C, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
|
||||
{ AV_CODEC_ID_EAC3, { 0xAF, 0x87, 0xFB, 0xA7, 0x02, 0x2D, 0xFB, 0x42, 0xA4, 0xD4, 0x05, 0xCD, 0x93, 0x84, 0x3B, 0xDD } },
|
||||
{ AV_CODEC_ID_MP2, { 0x2B, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
|
||||
{ AV_CODEC_ID_NONE }
|
||||
};
|
||||
|
||||
const AVMetadataConv ff_riff_info_conv[] = {
|
||||
{ "IART", "artist" },
|
||||
{ "ICMT", "comment" },
|
||||
@ -389,6 +396,15 @@ const AVMetadataConv ff_riff_info_conv[] = {
|
||||
{ 0 },
|
||||
};
|
||||
|
||||
enum AVCodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; guids[i].id != AV_CODEC_ID_NONE; i++)
|
||||
if (!ff_guidcmp(guids[i].guid, guid))
|
||||
return guids[i].id;
|
||||
return AV_CODEC_ID_NONE;
|
||||
}
|
||||
|
||||
#if CONFIG_MUXERS
|
||||
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
|
||||
{
|
||||
|
Reference in New Issue
Block a user