aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 10:50:54 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-31 10:50:54 +0000
commit0b99764459c0f2bd47944c7838f1448e0107a901 (patch)
tree7dc77a471bfc18eced907bc9dc257106069c77f8
parente4f141ad60afbd721e494975677fbfd8e0ebcb22 (diff)
downloadffmpeg-0b99764459c0f2bd47944c7838f1448e0107a901.tar.gz
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. Originally committed as revision 19056 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/lcldec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lcldec.c b/libavcodec/lcldec.c
index 5225ff0552..c4b81460db 100644
--- a/libavcodec/lcldec.c
+++ b/libavcodec/lcldec.c
@@ -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) {