[FFmpeg-cvslog] r19056 - trunk/libavcodec/lcldec.c

reimar subversion
Sun May 31 12:50:54 CEST 2009


Author: reimar
Date: Sun May 31 12:50:54 2009
New Revision: 19056

Log:
100l, the compression field in lcl extradata must be interpreted as
int8_t, not uint8_t to allow -1 for "no compression".
The original code worked, but only when char was signed.

Modified:
   trunk/libavcodec/lcldec.c

Modified: trunk/libavcodec/lcldec.c
==============================================================================
--- trunk/libavcodec/lcldec.c	Sun May 31 12:44:42 2009	(r19055)
+++ trunk/libavcodec/lcldec.c	Sun May 31 12:50:54 2009	(r19056)
@@ -512,7 +512,7 @@ static av_cold int decode_init(AVCodecCo
     }
 
     /* Detect compression method */
-    c->compression = avctx->extradata[5];
+    c->compression = (int8_t)avctx->extradata[5];
     switch (avctx->codec_id) {
     case CODEC_ID_MSZH:
         switch (c->compression) {



More information about the ffmpeg-cvslog mailing list