changeset 27701:5916162c1bd3

Change variable types from int to enum PixelFormat. Fixes icc warning #188: enumerated type mixed with another type
author cehoyos
date Thu, 09 Oct 2008 08:36:04 +0000
parents e65738d7dd3b
children b6a499f72725
files libswscale/swscale.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Thu Oct 09 07:46:20 2008 +0000
+++ b/libswscale/swscale.c	Thu Oct 09 08:36:04 2008 +0000
@@ -1716,8 +1716,8 @@
 
 static int pal2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
                           int srcSliceH, uint8_t* dst[], int dstStride[]){
-    const int srcFormat= c->srcFormat;
-    const int dstFormat= c->dstFormat;
+    const enum PixelFormat srcFormat= c->srcFormat;
+    const enum PixelFormat dstFormat= c->dstFormat;
     void (*conv)(const uint8_t *src, uint8_t *dst, long num_pixels,
                  const uint8_t *palette)=NULL;
     int i;