diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-05-29 09:36:27 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:43 -0300 |
commit | 53d25983bf2e9db8a9b8107fde9a82aad5259d8a (patch) | |
tree | 18cbc2a88e093bfc18eda3bc79e5c2572c2d553f /libavcodec/mp3_header_decompress_bsf.c | |
parent | a96c94bbd809e1bf56cab276498f7efc2869fbd2 (diff) |
mpegaudio: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/mp3_header_decompress_bsf.c')
-rw-r--r-- | libavcodec/mp3_header_decompress_bsf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mp3_header_decompress_bsf.c b/libavcodec/mp3_header_decompress_bsf.c index ebf6bde1c2..0fd8b3a454 100644 --- a/libavcodec/mp3_header_decompress_bsf.c +++ b/libavcodec/mp3_header_decompress_bsf.c @@ -98,7 +98,7 @@ static int mp3_header_decompress(AVBSFContext *ctx, AVPacket *out) } memcpy(out->data + frame_size - buf_size, buf, buf_size + AV_INPUT_BUFFER_PADDING_SIZE); - if(ctx->par_in->channels==2){ + if (ctx->par_in->ch_layout.nb_channels == 2){ uint8_t *p= out->data + frame_size - buf_size; if(lsf){ FFSWAP(int, p[1], p[2]); |