aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-29 23:38:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-30 00:55:32 +0100
commite80aa47abf74b9dda336d3e156fb49402093ec44 (patch)
tree157b32574614384d49e7a17a2a63d970ce662572
parent3410122c687baf3fbd435ed089af279d0c9c01cb (diff)
downloadffmpeg-e80aa47abf74b9dda336d3e156fb49402093ec44.tar.gz
avcodec/lagarith: fix init_get_bits() size in lag_decode_arith_plane()
untested due to lack of sample Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/lagarith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 71e7e99e31..710558cbef 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -443,7 +443,7 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
offset += 4;
}
- init_get_bits(&gb, src + offset, src_size * 8);
+ init_get_bits(&gb, src + offset, (src_size - offset) * 8);
if (lag_read_prob_header(&rac, &gb) < 0)
return -1;