[FFmpeg-soc] [soc]: r2285 - eac3/ac3dec.c
jbr
subversion at mplayerhq.hu
Sat May 31 18:15:30 CEST 2008
Author: jbr
Date: Sat May 31 18:15:30 2008
New Revision: 2285
Log:
add a check for invalid channel mode when coupling is used.
Modified:
eac3/ac3dec.c
Modified: eac3/ac3dec.c
==============================================================================
--- eac3/ac3dec.c (original)
+++ eac3/ac3dec.c Sat May 31 18:15:30 2008
@@ -793,6 +793,11 @@ static int decode_audio_block(AC3DecodeC
/* coupling in use */
int cpl_begin_freq, cpl_end_freq;
+ if (channel_mode < AC3_CHMODE_STEREO) {
+ av_log(s->avctx, AV_LOG_ERROR, "coupling not allowed in mono or dual-mono\n");
+ return -1;
+ }
+
/* check for enhanced coupling */
if (s->eac3 && get_bits1(gbc)) {
/* TODO: parse enhanced coupling strategy info */
More information about the FFmpeg-soc
mailing list