From 3410122c687baf3fbd435ed089af279d0c9c01cb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 29 Dec 2013 23:38:20 +0100 Subject: [PATCH] avcodec/lagarith: fix src/src_size for esc_count < 8 untested due to lack of sample Signed-off-by: Michael Niedermayer --- libavcodec/lagarith.c | 2 ++ 1 file changed, 2 insertions(+) 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++) {