# HG changeset patch # User bcoudurier # Date 1212290895 0 # Node ID f910db69b343e668bcf15fce793fe5587e88c2a3 # Parent 2ef7839deae29a6391408fbfdf7f57a515d25abd cast to correct type, suppress warnings diff -r 2ef7839deae2 -r f910db69b343 libswscale/swscale_template.c --- a/libswscale/swscale_template.c Sun Jun 01 03:27:45 2008 +0000 +++ b/libswscale/swscale_template.c Sun Jun 01 03:28:15 2008 +0000 @@ -2539,7 +2539,7 @@ } else if (srcFormat==PIX_FMT_RGB8 || srcFormat==PIX_FMT_BGR8 || srcFormat==PIX_FMT_PAL8 || srcFormat==PIX_FMT_BGR4_BYTE || srcFormat==PIX_FMT_RGB4_BYTE) { - RENAME(palToY)(formatConvBuffer, src, srcW, pal); + RENAME(palToY)(formatConvBuffer, src, srcW, (uint32_t*)pal); src= formatConvBuffer; } @@ -2755,7 +2755,7 @@ } else if (srcFormat==PIX_FMT_RGB8 || srcFormat==PIX_FMT_BGR8 || srcFormat==PIX_FMT_PAL8 || srcFormat==PIX_FMT_BGR4_BYTE || srcFormat==PIX_FMT_RGB4_BYTE) { - RENAME(palToUV)(formatConvBuffer, formatConvBuffer+VOFW, src1, src2, srcW, pal); + RENAME(palToUV)(formatConvBuffer, formatConvBuffer+VOFW, src1, src2, srcW, (uint32_t*)pal); src1= formatConvBuffer; src2= formatConvBuffer+VOFW; }