mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
avcodec/codec_internal: nuke init_static_data()
All hail get_supported_config()
This commit is contained in:
parent
2c2dfd9149
commit
4524d527bf
@ -915,13 +915,8 @@ static void av_codec_init_static(void)
|
|||||||
{
|
{
|
||||||
int dummy;
|
int dummy;
|
||||||
for (int i = 0; codec_list[i]; i++) {
|
for (int i = 0; codec_list[i]; i++) {
|
||||||
const FFCodec *codec = codec_list[i];
|
|
||||||
if (codec->init_static_data) {
|
|
||||||
codec->init_static_data((FFCodec*) codec);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Backward compatibility with deprecated public fields */
|
/* Backward compatibility with deprecated public fields */
|
||||||
|
const FFCodec *codec = codec_list[i];
|
||||||
if (!codec->get_supported_config)
|
if (!codec->get_supported_config)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -173,14 +173,6 @@ typedef struct FFCodec {
|
|||||||
*/
|
*/
|
||||||
const FFCodecDefault *defaults;
|
const FFCodecDefault *defaults;
|
||||||
|
|
||||||
/**
|
|
||||||
* Initialize codec static data, called from av_codec_iterate().
|
|
||||||
*
|
|
||||||
* This is not intended for time consuming operations as it is
|
|
||||||
* run for every codec regardless of that codec being used.
|
|
||||||
*/
|
|
||||||
void (*init_static_data)(struct FFCodec *codec);
|
|
||||||
|
|
||||||
int (*init)(struct AVCodecContext *);
|
int (*init)(struct AVCodecContext *);
|
||||||
|
|
||||||
union {
|
union {
|
||||||
|
Loading…
Reference in New Issue
Block a user