mirror of https://git.ffmpeg.org/ffmpeg.git
vima: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
9386ca98b6
commit
972586344a
|
@ -147,9 +147,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
|
||||||
channel_hint[0] = ~channel_hint[0];
|
channel_hint[0] = ~channel_hint[0];
|
||||||
channels = 2;
|
channels = 2;
|
||||||
}
|
}
|
||||||
avctx->channels = channels;
|
av_channel_layout_uninit(&avctx->ch_layout);
|
||||||
avctx->channel_layout = (channels == 2) ? AV_CH_LAYOUT_STEREO
|
av_channel_layout_default(&avctx->ch_layout, channels);
|
||||||
: AV_CH_LAYOUT_MONO;
|
|
||||||
pcm_data[0] = get_sbits(&gb, 16);
|
pcm_data[0] = get_sbits(&gb, 16);
|
||||||
if (channels > 1) {
|
if (channels > 1) {
|
||||||
channel_hint[1] = get_sbits(&gb, 8);
|
channel_hint[1] = get_sbits(&gb, 8);
|
||||||
|
|
Loading…
Reference in New Issue