From 28807666e3420f0fb501916aa82387c23401d86c Mon Sep 17 00:00:00 2001 From: abdelrahim-hentabli Date: Sun, 28 Apr 2024 16:52:51 -0700 Subject: [PATCH] using non-temp value --- tools/common/dump_mp4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/common/dump_mp4.cpp b/tools/common/dump_mp4.cpp index bfc541c..d7937c6 100644 --- a/tools/common/dump_mp4.cpp +++ b/tools/common/dump_mp4.cpp @@ -159,7 +159,7 @@ static void add_stream(OutputStream *ost, AVFormatContext *oc, av_channel_layout_copy(&c->ch_layout, &temp); #else c->channels = av_get_channel_layout_nb_channels(c->channel_layout); - c->channel_layout = temp; + c->channel_layout = AV_CHANNEL_LAYOUT_STEREO; if ((*codec)->channel_layouts) { c->channel_layout = (*codec)->channel_layouts[0]; for (i = 0; (*codec)->channel_layouts[i]; i++) {