|
|
|
@ -1727,11 +1727,6 @@ static int decode_frame_adu(AVCodecContext *avctx, void *data, |
|
|
|
|
|
|
|
|
|
s->frame_size = len; |
|
|
|
|
|
|
|
|
|
#if FF_API_PARSE_FRAME |
|
|
|
|
if (avctx->parse_only) |
|
|
|
|
out_size = buf_size; |
|
|
|
|
else |
|
|
|
|
#endif |
|
|
|
|
out_size = mp_decode_frame(s, NULL, buf, buf_size); |
|
|
|
|
|
|
|
|
|
*got_frame_ptr = 1; |
|
|
|
@ -1979,11 +1974,7 @@ AVCodec ff_mp1_decoder = { |
|
|
|
|
.priv_data_size = sizeof(MPADecodeContext), |
|
|
|
|
.init = decode_init, |
|
|
|
|
.decode = decode_frame, |
|
|
|
|
#if FF_API_PARSE_FRAME |
|
|
|
|
.capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1, |
|
|
|
|
#else |
|
|
|
|
.capabilities = CODEC_CAP_DR1, |
|
|
|
|
#endif |
|
|
|
|
.flush = flush, |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"), |
|
|
|
|
}; |
|
|
|
@ -1996,11 +1987,7 @@ AVCodec ff_mp2_decoder = { |
|
|
|
|
.priv_data_size = sizeof(MPADecodeContext), |
|
|
|
|
.init = decode_init, |
|
|
|
|
.decode = decode_frame, |
|
|
|
|
#if FF_API_PARSE_FRAME |
|
|
|
|
.capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1, |
|
|
|
|
#else |
|
|
|
|
.capabilities = CODEC_CAP_DR1, |
|
|
|
|
#endif |
|
|
|
|
.flush = flush, |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"), |
|
|
|
|
}; |
|
|
|
@ -2013,11 +2000,7 @@ AVCodec ff_mp3_decoder = { |
|
|
|
|
.priv_data_size = sizeof(MPADecodeContext), |
|
|
|
|
.init = decode_init, |
|
|
|
|
.decode = decode_frame, |
|
|
|
|
#if FF_API_PARSE_FRAME |
|
|
|
|
.capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1, |
|
|
|
|
#else |
|
|
|
|
.capabilities = CODEC_CAP_DR1, |
|
|
|
|
#endif |
|
|
|
|
.flush = flush, |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"), |
|
|
|
|
}; |
|
|
|
@ -2030,11 +2013,7 @@ AVCodec ff_mp3adu_decoder = { |
|
|
|
|
.priv_data_size = sizeof(MPADecodeContext), |
|
|
|
|
.init = decode_init, |
|
|
|
|
.decode = decode_frame_adu, |
|
|
|
|
#if FF_API_PARSE_FRAME |
|
|
|
|
.capabilities = CODEC_CAP_PARSE_ONLY | CODEC_CAP_DR1, |
|
|
|
|
#else |
|
|
|
|
.capabilities = CODEC_CAP_DR1, |
|
|
|
|
#endif |
|
|
|
|
.flush = flush, |
|
|
|
|
.long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"), |
|
|
|
|
}; |
|
|
|
|