changeset 9772:2771fff83016 libavcodec

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.
author reimar
date Sun, 31 May 2009 10:50:54 +0000
parents 85c99c1335bc
children 270ae6dc6352
files lcldec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lcldec.c	Sun May 31 10:44:42 2009 +0000
+++ b/lcldec.c	Sun May 31 10:50:54 2009 +0000
@@ -512,7 +512,7 @@
     }
 
     /* 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) {