From 49dd9757b681a383cba950b9e54bfc917e723988 Mon Sep 17 00:00:00 2001 From: abdelrahim-hentabli Date: Sun, 28 Apr 2024 16:46:25 -0700 Subject: [PATCH] fixed last ChannelLayout issue --- tools/common/dump_mp4.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/common/dump_mp4.cpp b/tools/common/dump_mp4.cpp index 39a89af..c3ae4cb 100644 --- a/tools/common/dump_mp4.cpp +++ b/tools/common/dump_mp4.cpp @@ -132,7 +132,10 @@ static void add_stream(OutputStream *ost, AVFormatContext *oc, } ost->enc = c; +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(58, 0, 0) const AVChannelLayout temp = AV_CHANNEL_LAYOUT_STEREO; +#endif + switch ((*codec)->type) { case AVMEDIA_TYPE_AUDIO: c->sample_fmt =