Unified · Split
| @@ -77,17 +77,21 @@ int main(void){ · 76 unmodified lines | |||
| 77 | ERR_EXT("Codec %s has unsupported type %s\n", | 77 | ERR_EXT("Codec %s has unsupported type %s\n", |
| 78 | get_type_string(codec->type)); | 78 | get_type_string(codec->type)); |
| 79 | if (codec->type != AVMEDIA_TYPE_AUDIO) { | 79 | if (codec->type != AVMEDIA_TYPE_AUDIO) { |
| 80 | FF_DISABLE_DEPRECATION_WARNINGS | ||
| 80 | if (codec->ch_layouts || codec->sample_fmts || | 81 | if (codec->ch_layouts || codec->sample_fmts || |
| 81 | codec->supported_samplerates) | 82 | codec->supported_samplerates) |
| 82 | ERR("Non-audio codec %s has audio-only fields set\n"); | 83 | ERR("Non-audio codec %s has audio-only fields set\n"); |
| 84 | FF_ENABLE_DEPRECATION_WARNINGS | ||
| 83 | if (codec->capabilities & (AV_CODEC_CAP_SMALL_LAST_FRAME | | 85 | if (codec->capabilities & (AV_CODEC_CAP_SMALL_LAST_FRAME | |
| 84 | AV_CODEC_CAP_CHANNEL_CONF | | 86 | AV_CODEC_CAP_CHANNEL_CONF | |
| 85 | AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) | 87 | AV_CODEC_CAP_VARIABLE_FRAME_SIZE)) |
| 86 | ERR("Non-audio codec %s has audio-only capabilities set\n"); | 88 | ERR("Non-audio codec %s has audio-only capabilities set\n"); |
| 87 | } | 89 | } |
| 88 | if (codec->type != AVMEDIA_TYPE_VIDEO) { | 90 | if (codec->type != AVMEDIA_TYPE_VIDEO) { |
| 91 | FF_DISABLE_DEPRECATION_WARNINGS | ||
| 89 | if (codec->pix_fmts || codec->supported_framerates) | 92 | if (codec->pix_fmts || codec->supported_framerates) |
| 90 | ERR("Non-video codec %s has video-only fields set\n"); | 93 | ERR("Non-video codec %s has video-only fields set\n"); |
| 94 | FF_ENABLE_DEPRECATION_WARNINGS | ||
| 91 | if (codec2->caps_internal & FF_CODEC_CAP_EXPORTS_CROPPING) | 95 | if (codec2->caps_internal & FF_CODEC_CAP_EXPORTS_CROPPING) |
| 92 | ERR("Non-video codec %s exports cropping\n"); | 96 | ERR("Non-video codec %s exports cropping\n"); |
| 93 | } | 97 | } |
| @@ -136,10 +140,12 @@ int main(void){ · 42 unmodified lines | |||
| 136 | if (codec2->update_thread_context || codec2->update_thread_context_for_user || codec2->bsfs) | 140 | if (codec2->update_thread_context || codec2->update_thread_context_for_user || codec2->bsfs) |
| 137 | ERR("Encoder %s has decoder-only thread functions or bsf.\n"); | 141 | ERR("Encoder %s has decoder-only thread functions or bsf.\n"); |
| 138 | if (codec->type == AVMEDIA_TYPE_AUDIO) { | 142 | if (codec->type == AVMEDIA_TYPE_AUDIO) { |
| 143 | FF_DISABLE_DEPRECATION_WARNINGS | ||
| 139 | if (!codec->sample_fmts) { | 144 | if (!codec->sample_fmts) { |
| 140 | av_log(NULL, AV_LOG_FATAL, "Encoder %s is missing the sample_fmts field\n", codec->name); | 145 | av_log(NULL, AV_LOG_FATAL, "Encoder %s is missing the sample_fmts field\n", codec->name); |
| 141 | ret = 1; | 146 | ret = 1; |
| 142 | } | 147 | } |
| 148 | FF_ENABLE_DEPRECATION_WARNINGS | ||
| 143 | } | 149 | } |
| 144 | if (codec2->caps_internal & (FF_CODEC_CAP_USES_PROGRESSFRAMES | | 150 | if (codec2->caps_internal & (FF_CODEC_CAP_USES_PROGRESSFRAMES | |
| 145 | FF_CODEC_CAP_SETS_PKT_DTS | | 151 | FF_CODEC_CAP_SETS_PKT_DTS | |