Mercurial > libavcodec.hg
comparison ac3dec.c @ 11560:8a4984c5cacc libavcodec
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
author | stefano |
---|---|
date | Tue, 30 Mar 2010 23:30:55 +0000 |
parents | 444f4b594fdb |
children | 998691d7f8f5 |
comparison
equal
deleted
inserted
replaced
11559:444f4b594fdb | 11560:8a4984c5cacc |
---|---|
1437 return 0; | 1437 return 0; |
1438 } | 1438 } |
1439 | 1439 |
1440 AVCodec ac3_decoder = { | 1440 AVCodec ac3_decoder = { |
1441 .name = "ac3", | 1441 .name = "ac3", |
1442 .type = CODEC_TYPE_AUDIO, | 1442 .type = AVMEDIA_TYPE_AUDIO, |
1443 .id = CODEC_ID_AC3, | 1443 .id = CODEC_ID_AC3, |
1444 .priv_data_size = sizeof (AC3DecodeContext), | 1444 .priv_data_size = sizeof (AC3DecodeContext), |
1445 .init = ac3_decode_init, | 1445 .init = ac3_decode_init, |
1446 .close = ac3_decode_end, | 1446 .close = ac3_decode_end, |
1447 .decode = ac3_decode_frame, | 1447 .decode = ac3_decode_frame, |
1449 }; | 1449 }; |
1450 | 1450 |
1451 #if CONFIG_EAC3_DECODER | 1451 #if CONFIG_EAC3_DECODER |
1452 AVCodec eac3_decoder = { | 1452 AVCodec eac3_decoder = { |
1453 .name = "eac3", | 1453 .name = "eac3", |
1454 .type = CODEC_TYPE_AUDIO, | 1454 .type = AVMEDIA_TYPE_AUDIO, |
1455 .id = CODEC_ID_EAC3, | 1455 .id = CODEC_ID_EAC3, |
1456 .priv_data_size = sizeof (AC3DecodeContext), | 1456 .priv_data_size = sizeof (AC3DecodeContext), |
1457 .init = ac3_decode_init, | 1457 .init = ac3_decode_init, |
1458 .close = ac3_decode_end, | 1458 .close = ac3_decode_end, |
1459 .decode = ac3_decode_frame, | 1459 .decode = ac3_decode_frame, |