diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-01-13 19:32:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-01-13 19:32:08 +0000 |
commit | cb595b7f029297750e9fd98d0a4d12f2e2c38ea4 (patch) | |
tree | 77544e00292ec65e0c684ee378a32d0ded36b0de /libavcodec/mpegaudiodec.c | |
parent | 7f507b2d9eff1811bedd08bf27a9a4c198d0a599 (diff) | |
download | ffmpeg-cb595b7f029297750e9fd98d0a4d12f2e2c38ea4.tar.gz |
Add dummy mp1_decoder to complement the existing dummy mp2/mp3 decoders.
Originally committed as revision 16581 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegaudiodec.c')
-rw-r--r-- | libavcodec/mpegaudiodec.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c index a853562a3f..a1386a08d2 100644 --- a/libavcodec/mpegaudiodec.c +++ b/libavcodec/mpegaudiodec.c @@ -2534,6 +2534,22 @@ static int decode_frame_mp3on4(AVCodecContext * avctx, } #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 = { |