[cvs] / xvidcore / src / quant / adapt_quant.c Repository:
ViewVC logotype

Diff of /xvidcore/src/quant/adapt_quant.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8, Fri Sep 20 19:58:36 2002 UTC revision 1.11, Sat Oct 19 12:20:33 2002 UTC
# Line 3  Line 3 
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Adaptive quantization functions -   *  - Adaptive quantization functions -
5   *   *
6   *  Copyright(C) 2002 Peter Ross   *  Copyright(C) 2002 Peter Ross <pross@xvid.org>
7     *               2002 Christoph Lampert <gruel@web.de>
8   *   *
9   *  This program is an implementation of a part of one or more MPEG-4   *  This program is an implementation of a part of one or more MPEG-4
10   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending   *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending
# Line 125  Line 126 
126          if (!(quant = (float *) malloc(mb_width * mb_height * sizeof(float))))          if (!(quant = (float *) malloc(mb_width * mb_height * sizeof(float))))
127                  return(-1);                  return(-1);
128    
129          if(!(val = (float *) malloc(mb_width * mb_height * sizeof(float))))          if(!(val = (float *) malloc(mb_width * mb_height * sizeof(float)))) {
130                    free(quant);
131                  return(-1);                  return(-1);
132            }
133    
134          for (k = 0; k < mb_height; k++) {          for (k = 0; k < mb_height; k++) {
135                  for (l = 0; l < mb_width; l++)  // do this for all macroblocks individually                  for (l = 0; l < mb_width; l++)  // do this for all macroblocks individually

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.11

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4