mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
Support native DTS channel order when requested.
This commit is contained in:
parent
f0eb373f9d
commit
a37f7b6246
@ -1793,6 +1793,10 @@ static int dca_decode_frame(AVCodecContext * avctx,
|
|||||||
s->output = DCA_STEREO;
|
s->output = DCA_STEREO;
|
||||||
avctx->channel_layout = AV_CH_LAYOUT_STEREO;
|
avctx->channel_layout = AV_CH_LAYOUT_STEREO;
|
||||||
}
|
}
|
||||||
|
else if (avctx->request_channel_layout & AV_CH_LAYOUT_NATIVE) {
|
||||||
|
static const int8_t dca_channel_order_native[9] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };
|
||||||
|
s->channel_order_tab = dca_channel_order_native;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Non standard configuration %d !\n",s->amode);
|
av_log(avctx, AV_LOG_ERROR, "Non standard configuration %d !\n",s->amode);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user