[FFmpeg-cvslog] r18857 - trunk/libavcodec/ac3dec.c

jbr subversion
Sat May 16 19:02:45 CEST 2009


Author: jbr
Date: Sat May 16 19:02:44 2009
New Revision: 18857

Log:
ac3dec: fix coupling range check.  the start subband must be less than 
the end subband.

Modified:
   trunk/libavcodec/ac3dec.c

Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c	Sat May 16 17:09:30 2009	(r18856)
+++ trunk/libavcodec/ac3dec.c	Sat May 16 19:02:44 2009	(r18857)
@@ -872,8 +872,8 @@ static int decode_audio_block(AC3DecodeC
             /* TODO: modify coupling end freq if spectral extension is used */
             cpl_start_subband = get_bits(gbc, 4);
             cpl_end_subband   = get_bits(gbc, 4) + 3;
-            if (cpl_start_subband > cpl_end_subband) {
-                av_log(s->avctx, AV_LOG_ERROR, "invalid coupling range (%d > %d)\n",
+            if (cpl_start_subband >= cpl_end_subband) {
+                av_log(s->avctx, AV_LOG_ERROR, "invalid coupling range (%d >= %d)\n",
                        cpl_start_subband, cpl_end_subband);
                 return -1;
             }



More information about the ffmpeg-cvslog mailing list