Commit 1fdb5649 authored by Kostya Shishkov's avatar Kostya Shishkov

lagarith: make offset array type unsigned

This is logical and also fixes checking for the fourth plane offset.
parent 8099187e
...@@ -457,7 +457,7 @@ static int lag_decode_frame(AVCodecContext *avctx, ...@@ -457,7 +457,7 @@ static int lag_decode_frame(AVCodecContext *avctx,
AVFrame *const p = &l->picture; AVFrame *const p = &l->picture;
uint8_t frametype = 0; uint8_t frametype = 0;
uint32_t offset_gu = 0, offset_bv = 0, offset_ry = 9; uint32_t offset_gu = 0, offset_bv = 0, offset_ry = 9;
int offs[4]; uint32_t offs[4];
uint8_t *srcs[4], *dst; uint8_t *srcs[4], *dst;
int i, j, planes = 3; int i, j, planes = 3;
......
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