[FFmpeg-devel] [Patch] Fix icc warning #120 for pcx.c

Carl Eugen Hoyos cehoyos
Mon May 12 13:04:33 CEST 2008


Hi!

Icc claims that pcx_rle_decode() in pcx.c should be defined unsigned.
Fixes following icc warning:

libavcodec/pcx.c(61): warning #120: return value type does not match the 
function type
       return src;
              ^

OK or should I just silence the warning (this is the only occurence)?

Carl Eugen
-------------- next part --------------
Index: libavcodec/pcx.c
===================================================================
--- libavcodec/pcx.c	(revision 13078)
+++ libavcodec/pcx.c	(working copy)
@@ -42,7 +42,7 @@
 /**
  * @return advanced src pointer
  */
-static const char *pcx_rle_decode(const uint8_t *src, uint8_t *dst,
+static const unsigned char *pcx_rle_decode(const uint8_t *src, uint8_t *dst,
                             unsigned int bytes_per_scanline) {
     unsigned int i = 0;
     unsigned char run, value;



More information about the ffmpeg-devel mailing list