diff options
Diffstat (limited to 'libavcodec/mpc8.c')
-rw-r--r-- | libavcodec/mpc8.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpc8.c b/libavcodec/mpc8.c index 0d4f128912..c47e74dde2 100644 --- a/libavcodec/mpc8.c +++ b/libavcodec/mpc8.c @@ -178,6 +178,7 @@ static av_cold int mpc8_decode_init(AVCodecContext * avctx) } vlc_initialized = 1; avctx->sample_fmt = SAMPLE_FMT_S16; + avctx->channel_layout = (avctx->channels==2) ? CH_LAYOUT_STEREO : CH_LAYOUT_MONO; return 0; } |