You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/dvaudiodec: set channel layout
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -51,6 +51,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
s->is_12bit = avctx->bits_per_raw_sample == 12;
|
s->is_12bit = avctx->bits_per_raw_sample == 12;
|
||||||
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
|
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
|
||||||
|
avctx->channel_layout = AV_CH_LAYOUT_STEREO;
|
||||||
|
|
||||||
for (i = 0; i < FF_ARRAY_ELEMS(s->shuffle); i++) {
|
for (i = 0; i < FF_ARRAY_ELEMS(s->shuffle); i++) {
|
||||||
const unsigned a = s->is_pal ? 18 : 15;
|
const unsigned a = s->is_pal ? 18 : 15;
|
||||||
|
Reference in New Issue
Block a user