[FFmpeg-cvslog] r11423 - trunk/libavcodec/dca.c
jbr
subversion
Sat Jan 5 22:23:57 CET 2008
Author: jbr
Date: Sat Jan 5 22:23:57 2008
New Revision: 11423
Log:
check for request_channels in dca init function
Modified:
trunk/libavcodec/dca.c
Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c (original)
+++ trunk/libavcodec/dca.c Sat Jan 5 22:23:57 2008
@@ -1230,6 +1230,13 @@ static int dca_decode_init(AVCodecContex
pre_calc_cosmod(s);
dsputil_init(&s->dsp, avctx);
+
+ /* allow downmixing to stereo */
+ if (avctx->channels > 0 && avctx->request_channels < avctx->channels &&
+ avctx->request_channels == 2) {
+ avctx->channels = avctx->request_channels;
+ }
+
return 0;
}
More information about the ffmpeg-cvslog
mailing list