[FFmpeg-cvslog] r13381 - trunk/libavcodec/ac3dec.c
jbr
subversion
Sun May 25 17:23:03 CEST 2008
Author: jbr
Date: Sun May 25 17:23:03 2008
New Revision: 13381
Log:
add check for invalid channel mode when coupling is used
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Sun May 25 17:23:03 2008
@@ -818,6 +818,11 @@ static int ac3_parse_audio_block(AC3Deco
/* 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;
+ }
+
/* determine which channels are coupled */
for (ch = 1; ch <= fbw_channels; ch++)
s->channel_in_cpl[ch] = get_bits1(gbc);
More information about the ffmpeg-cvslog
mailing list