diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-11-02 18:12:48 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-11-03 17:18:02 +0300 |
commit | 41c692ee2f0f5a92d6162e65652e6f8d399df1a9 (patch) | |
tree | 4e95c52e8f8d746a77e8a1737f5f0204d39c76bd /intern/ffmpeg/tests | |
parent | 74c293863ded1c052601b4caed07efe3453d697d (diff) |
Fix deprecation warnings in FFmpeg related code
The non-deprecated API dates back to 2017, so it should be safe
to simply migrate to it.
Fixes verbose error prints, making it easier to see actual issues.
Differential Revision: https://developer.blender.org/D16370
Diffstat (limited to 'intern/ffmpeg/tests')
-rw-r--r-- | intern/ffmpeg/tests/ffmpeg_codecs.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ffmpeg/tests/ffmpeg_codecs.cc b/intern/ffmpeg/tests/ffmpeg_codecs.cc index e5c33202417..10cbe4b938b 100644 --- a/intern/ffmpeg/tests/ffmpeg_codecs.cc +++ b/intern/ffmpeg/tests/ffmpeg_codecs.cc @@ -40,7 +40,7 @@ bool test_acodec(const AVCodec *codec, AVSampleFormat fmt) if (ctx) { ctx->sample_fmt = fmt; ctx->sample_rate = 48000; - ctx->channel_layout = AV_CH_LAYOUT_MONO; + av_channel_layout_from_mask(&ctx->ch_layout, AV_CH_LAYOUT_MONO); ctx->bit_rate = 128000; int open = avcodec_open2(ctx, codec, NULL); if (open >= 0) { |