# HG changeset patch # User jbr # Date 1242493364 0 # Node ID b4350a6fb24ac29cdc2659099cda1f46b9c2ee3d # Parent 67a20f0eb42cd1bca2c4282e564df27cd1f9b792 ac3dec: fix coupling range check. the start subband must be less than the end subband. diff -r 67a20f0eb42c -r b4350a6fb24a ac3dec.c --- a/ac3dec.c Sat May 16 14:17:08 2009 +0000 +++ b/ac3dec.c Sat May 16 17:02:44 2009 +0000 @@ -872,8 +872,8 @@ /* 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; }