summaryrefslogtreecommitdiff
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-12 15:06:58 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-22 20:07:02 -0500
commit3798205a77ce275613098ecb48645e6029811f14 (patch)
tree41ad2274e8fe47a7546bb8ea301280090b66e2ac /libavcodec/ac3dec.c
parent1254022ea717fba6f189d6a66841e0ba204ed80a (diff)
mov: set channel layout for AC-3 streams based on the 'dac3' atom info
fixes Bug 225
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index c0d7488d84..a8bc48ab6e 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1378,7 +1378,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data,
avctx->request_channels < s->channels) {
s->out_channels = avctx->request_channels;
s->output_mode = avctx->request_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO;
- s->channel_layout = ff_ac3_channel_layout_tab[s->output_mode];
+ s->channel_layout = avpriv_ac3_channel_layout_tab[s->output_mode];
}
avctx->channels = s->out_channels;
avctx->channel_layout = s->channel_layout;