summaryrefslogtreecommitdiff
path: root/libavcodec/lagarith.c
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
commit3410122c687baf3fbd435ed089af279d0c9c01cb (patch)
tree1108e9e8938941095723a4a1ae86054f745f09af /libavcodec/lagarith.c
parent100a54da5264436202daeedd68ed5e4a8be41459 (diff)
avcodec/lagarith: fix src/src_size for esc_count < 8
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, 2 insertions, 0 deletions
diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 23934ceed8..71e7e99e31 100644
--- a/libavcodec/lagarith.c
+++ b/libavcodec/lagarith.c
@@ -460,6 +460,8 @@ static int lag_decode_arith_plane(LagarithContext *l, uint8_t *dst,
length);
} else if (esc_count < 8) {
esc_count -= 4;
+ src ++;
+ src_size --;
if (esc_count > 0) {
/* Zero run coding only, no range coding. */
for (i = 0; i < height; i++) {