Author: superdump
Date: Wed Aug  6 01:08:01 2008
New Revision: 3044

Log:
offset[] should be >0 and <255 so check against 255U


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c   (original)
+++ aac/aac.c   Wed Aug  6 01:08:01 2008
@@ -742,7 +742,7 @@ static int decode_scalefactors(AACContex
                 ics->intensity_present = 1;
                 for(; i < run_end; i++) {
                     offset[2] += get_vlc2(gb, vlc_scalefactors.table, 7, 3) - 
60;
-                    if(offset[2] > 255) {
+                    if(offset[2] > 255U) {
                         av_log(ac->avccontext, AV_LOG_ERROR,
                             "%s (%d) out of range.\n", sf_str[2], offset[2]);
                         return -1;
@@ -756,7 +756,7 @@ static int decode_scalefactors(AACContex
                         offset[1] += get_bits(gb, 9) - 256;
                     else
                         offset[1] += get_vlc2(gb, vlc_scalefactors.table, 7, 
3) - 60;
-                    if(offset[1] > 255) {
+                    if(offset[1] > 255U) {
                         av_log(ac->avccontext, AV_LOG_ERROR,
                             "%s (%d) out of range.\n", sf_str[1], offset[1]);
                         return -1;
@@ -767,7 +767,7 @@ static int decode_scalefactors(AACContex
             }else {
                 for(; i < run_end; i++) {
                     offset[0] += get_vlc2(gb, vlc_scalefactors.table, 7, 3) - 
60;
-                    if(offset[0] > 255) {
+                    if(offset[0] > 255U) {
                         av_log(ac->avccontext, AV_LOG_ERROR,
                             "%s (%d) out of range.\n", sf_str[0], offset[0]);
                         return -1;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to