[FFmpeg-devel] [PATCH 097/281] movenc-test: convert to new channel layout API

James Almer jamrial at gmail.com
Thu Jan 13 03:55:50 EET 2022


From: Vittorio Giovara <vittorio.giovara at gmail.com>

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/tests/movenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c
index 2af72f11c7..1d45725318 100644
--- a/libavformat/tests/movenc.c
+++ b/libavformat/tests/movenc.c
@@ -214,7 +214,7 @@ static void init_fps(int bf, int audio_preroll, int fps)
     st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codecpar->codec_id = AV_CODEC_ID_AAC;
     st->codecpar->sample_rate = 44100;
-    st->codecpar->channels = 2;
+    st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO;
     st->time_base.num = 1;
     st->time_base.den = 44100;
     st->codecpar->extradata_size = sizeof(aac_extradata);
-- 
2.34.1



More information about the ffmpeg-devel mailing list