[FFmpeg-cvslog] avcodec/lagarith: fix src/src_size for esc_count < 8

Michael Niedermayer git at videolan.org
Mon Dec 30 01:02:59 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Dec 29 23:38:20 2013 +0100| [3410122c687baf3fbd435ed089af279d0c9c01cb] | committer: Michael Niedermayer

avcodec/lagarith: fix src/src_size for esc_count < 8

untested due to lack of sample

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3410122c687baf3fbd435ed089af279d0c9c01cb
---

 libavcodec/lagarith.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c
index 23934ce..71e7e99 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++) {



More information about the ffmpeg-cvslog mailing list