mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-25 18:02:10 +08:00
avcodec: remove avcodec_parse_frame and deprecate associated elements.
The documentation for CODEC_CAP_PARSE_ONLY and AVCodecContext.parse_only indicates that they are utilized through avcodec_parse_frame(), which was never actually implemented.
This commit is contained in:
@@ -30,7 +30,9 @@ AVCodec ff_mp1float_decoder = {
|
||||
.priv_data_size = sizeof(MPADecodeContext),
|
||||
.init = decode_init,
|
||||
.decode = decode_frame,
|
||||
#if FF_API_PARSE_FRAME
|
||||
.capabilities = CODEC_CAP_PARSE_ONLY,
|
||||
#endif
|
||||
.flush = flush,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("MP1 (MPEG audio layer 1)"),
|
||||
};
|
||||
@@ -43,7 +45,9 @@ AVCodec ff_mp2float_decoder = {
|
||||
.priv_data_size = sizeof(MPADecodeContext),
|
||||
.init = decode_init,
|
||||
.decode = decode_frame,
|
||||
#if FF_API_PARSE_FRAME
|
||||
.capabilities = CODEC_CAP_PARSE_ONLY,
|
||||
#endif
|
||||
.flush = flush,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("MP2 (MPEG audio layer 2)"),
|
||||
};
|
||||
@@ -56,7 +60,9 @@ AVCodec ff_mp3float_decoder = {
|
||||
.priv_data_size = sizeof(MPADecodeContext),
|
||||
.init = decode_init,
|
||||
.decode = decode_frame,
|
||||
#if FF_API_PARSE_FRAME
|
||||
.capabilities = CODEC_CAP_PARSE_ONLY,
|
||||
#endif
|
||||
.flush = flush,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("MP3 (MPEG audio layer 3)"),
|
||||
};
|
||||
@@ -69,7 +75,9 @@ AVCodec ff_mp3adufloat_decoder = {
|
||||
.priv_data_size = sizeof(MPADecodeContext),
|
||||
.init = decode_init,
|
||||
.decode = decode_frame_adu,
|
||||
#if FF_API_PARSE_FRAME
|
||||
.capabilities = CODEC_CAP_PARSE_ONLY,
|
||||
#endif
|
||||
.flush = flush,
|
||||
.long_name = NULL_IF_CONFIG_SMALL("ADU (Application Data Unit) MP3 (MPEG audio layer 3)"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user