Commit dfb035a9 authored by reimar's avatar reimar

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19056 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 84272386
......@@ -512,7 +512,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
/* 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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment