[FFmpeg-soc] [soc]: r2612 - aacenc/aacenc.c

kostya subversion at mplayerhq.hu
Tue Jul 1 11:30:44 CEST 2008


Author: kostya
Date: Tue Jul  1 11:30:44 2008
New Revision: 2612

Log:
Print warning in case of incorrect scalefactor sequence

Modified:
   aacenc/aacenc.c

Modified: aacenc/aacenc.c
==============================================================================
--- aacenc/aacenc.c	(original)
+++ aacenc/aacenc.c	Tue Jul  1 11:30:44 2008
@@ -465,6 +465,7 @@ static void encode_scale_factor_data(AVC
         for(i = 0; i < cpe->ch[channel].ics.max_sfb; i++){
             if(!cpe->ch[channel].zeroes[w][i]){
                 diff = cpe->ch[channel].sf_idx[w][i] - off + SCALE_DIFF_ZERO;
+                if(diff < 0 || diff > 120) av_log(avctx, AV_LOG_ERROR, "Scalefactor difference is too big to be coded\n");
                 off = cpe->ch[channel].sf_idx[w][i];
                 put_bits(&s->pb, bits[diff], code[diff]);
             }



More information about the FFmpeg-soc mailing list