Mercurial > libavcodec.hg
diff mpegaudiodec.c @ 8586:d7d0cde5f308 libavcodec
Add dummy mp1_decoder to complement the existing dummy mp2/mp3 decoders.
author | michael |
---|---|
date | Tue, 13 Jan 2009 19:32:08 +0000 |
parents | c5302e0ecf4e |
children | 7a463923ecd1 |
line wrap: on
line diff
--- a/mpegaudiodec.c Tue Jan 13 19:13:08 2009 +0000 +++ b/mpegaudiodec.c Tue Jan 13 19:32:08 2009 +0000 @@ -2534,6 +2534,22 @@ } #endif /* CONFIG_MP3ON4_DECODER */ +#ifdef CONFIG_MP1_DECODER +AVCodec mp1_decoder = +{ + "mp1", + CODEC_TYPE_AUDIO, + CODEC_ID_MP1, + sizeof(MPADecodeContext), + decode_init, + NULL, + NULL, + decode_frame, + CODEC_CAP_PARSE_ONLY, + .flush= flush, + .long_name= NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"), +}; +#endif #ifdef CONFIG_MP2_DECODER AVCodec mp2_decoder = {