Revision 36ffabc4 libavformat/riff.c

View differences:

libavformat/riff.c
320 320
    { CODEC_ID_NONE,      0 },
321 321
};
322 322

  
323
const AVCodecGuid ff_codec_wav_guids[] = {
324
    {CODEC_ID_AC3,        {0x2C,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
325
    {CODEC_ID_EAC3,       {0xAF,0x87,0xFB,0xA7,0x02,0x2D,0xFB,0x42,0xA4,0xD4,0x05,0xCD,0x93,0x84,0x3B,0xDD}},
326
    {CODEC_ID_MP2,        {0x2B,0x80,0x6D,0xE0,0x46,0xDB,0xCF,0x11,0xB4,0xD1,0x00,0x80,0x5F,0x6C,0xBB,0xEA}},
327
    {CODEC_ID_NONE}
328
};
329

  
323 330
#if CONFIG_MUXERS
324 331
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
325 332
{
......
590 597
    assert(sizeof(*g) == 16);
591 598
    avio_read(s, *g, sizeof(*g));
592 599
}
600

  
601
enum CodecID ff_codec_guid_get_id(const AVCodecGuid *guids, ff_asf_guid guid)
602
{
603
    int i;
604
    for (i = 0; guids[i].id != CODEC_ID_NONE; i++) {
605
        if (!ff_guidcmp(guids[i].guid, guid))
606
            return guids[i].id;
607
    }
608
    return CODEC_ID_NONE;
609
}

Also available in: Unified diff