# HG changeset patch # User reimar # Date 1243767054 0 # Node ID 2771fff83016048faa3466ce057d2ded6a653748 # Parent 85c99c1335bcd568c617f144ec53d54eb3dd31db 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. diff -r 85c99c1335bc -r 2771fff83016 lcldec.c --- 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) {