ffmpeg: fix libavutil version check for av_channel_layout_default()
authorSteve Lhomme <robux4@ycbcr.xyz>
Tue, 18 Jun 2024 13:34:10 +0000 (15:34 +0200)
committerSebastian Ramacher <sramacher@debian.org>
Fri, 7 Mar 2025 06:31:22 +0000 (07:31 +0100)
commitd67b9687923b04eca8b9da4799cfaec7ab76e58d
tree9b085a20b8af8bd74704e47afb50d2ca8f00427c
parent307e3a6cd83aaa867465e43f2de51bcff3ec0b0a
ffmpeg: fix libavutil version check for av_channel_layout_default()

It was added in c41899a3770cb4510e15b223fa34d129305b1589 which
was libavutil 57.23.100 at the time but the minor version was not updated in
that commit so we check 57.24.100.

The same check applies for av_channel_layout_copy() added in the same commit.

This is part of FFmpeg 5.1.

https://github.com/FFmpeg/FFmpeg/commit/086a8048061bf9fb4c63943f6962db48175f655c
(cherry picked from commit 195f0c98599b55950c49a62f98d9d3495be310df) (rebased)
rebased:
- the code around is slightly different

Gbp-Pq: Name 0092-ffmpeg-fix-libavutil-version-check-for-av_channel_la.patch
modules/codec/avcodec/encoder.c
modules/demux/avformat/mux.c