[FFmpeg-cvslog] r13145 - in trunk/libavcodec: vp56.c vp56data.h

cehoyos subversion
Tue May 13 17:56:45 CEST 2008


Author: cehoyos
Date: Tue May 13 17:56:45 2008
New Revision: 13145

Log:
Add VP56_FRAME_NONE and use VP56_FRAME_CURRENT.
Fixes icc warning #188: enumerated type mixed with another type


Modified:
   trunk/libavcodec/vp56.c
   trunk/libavcodec/vp56data.h

Modified: trunk/libavcodec/vp56.c
==============================================================================
--- trunk/libavcodec/vp56.c	(original)
+++ trunk/libavcodec/vp56.c	Tue May 13 17:56:45 2008
@@ -552,12 +552,12 @@ int vp56_decode_frame(AVCodecContext *av
         s->prev_dc[2][VP56_FRAME_CURRENT] = 128;
 
         for (block=0; block < 4*s->mb_width+6; block++) {
-            s->above_blocks[block].ref_frame = -1;
+            s->above_blocks[block].ref_frame = VP56_FRAME_NONE;
             s->above_blocks[block].dc_coeff = 0;
             s->above_blocks[block].not_null_dc = 0;
         }
-        s->above_blocks[2*s->mb_width + 2].ref_frame = 0;
-        s->above_blocks[3*s->mb_width + 4].ref_frame = 0;
+        s->above_blocks[2*s->mb_width + 2].ref_frame = VP56_FRAME_CURRENT;
+        s->above_blocks[3*s->mb_width + 4].ref_frame = VP56_FRAME_CURRENT;
 
         stride_y  = p->linesize[0];
         stride_uv = p->linesize[1];
@@ -573,7 +573,7 @@ int vp56_decode_frame(AVCodecContext *av
                 mb_row_flip = mb_row;
 
             for (block=0; block<4; block++) {
-                s->left_block[block].ref_frame = -1;
+                s->left_block[block].ref_frame = VP56_FRAME_NONE;
                 s->left_block[block].dc_coeff = 0;
                 s->left_block[block].not_null_dc = 0;
             }

Modified: trunk/libavcodec/vp56data.h
==============================================================================
--- trunk/libavcodec/vp56data.h	(original)
+++ trunk/libavcodec/vp56data.h	Tue May 13 17:56:45 2008
@@ -27,6 +27,7 @@
 #include "libavutil/common.h"
 
 typedef enum {
+    VP56_FRAME_NONE     =-1,
     VP56_FRAME_CURRENT  = 0,
     VP56_FRAME_PREVIOUS = 1,
     VP56_FRAME_GOLDEN   = 2,




More information about the ffmpeg-cvslog mailing list