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