diff options
author | James Almer <jamrial@gmail.com> | 2022-08-21 17:46:36 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-08-21 17:51:18 -0300 |
commit | 6ee1996721710a6b15d5664446964d7b835ff3a6 (patch) | |
tree | 5554ab77657567c76d2aa72524933d8928904773 | |
parent | 4e4cc6e56a899f6b4302e80dbcd6b4462f340905 (diff) | |
download | ffmpeg-6ee1996721710a6b15d5664446964d7b835ff3a6.tar.gz |
swresample/swresample: fill the correct buffer to print the output layout string
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libswresample/swresample.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 9b77ef65bf..601e691596 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -385,8 +385,8 @@ av_cold int swr_init(struct SwrContext *s){ goto fail; } + av_channel_layout_describe(&s->out_ch_layout, l2, sizeof(l2)); #if FF_API_OLD_CHANNEL_LAYOUT - av_channel_layout_describe(&s->out_ch_layout, l1, sizeof(l1)); if (s->out_ch_layout.order != AV_CHANNEL_ORDER_UNSPEC && s->out.ch_count != s->out_ch_layout.nb_channels) { av_log(s, AV_LOG_ERROR, "Output channel layout %s mismatches specified channel count %d\n", l2, s->out.ch_count); ret = AVERROR(EINVAL); |