Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-30 02:38:20 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-30 03:55:32 +0400
commite80aa47abf74b9dda336d3e156fb49402093ec44 (patch)
tree157b32574614384d49e7a17a2a63d970ce662572 /libavcodec/lagarith.c
parent3410122c687baf3fbd435ed089af279d0c9c01cb (diff)
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>
Diffstat (limited to 'libavcodec/lagarith.c')
-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;