From 097ea6db27e0a258365e9679f54b22e743fe15e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= <Reimar.Doeffinger@gmx.de>
Date: Tue, 23 Nov 2010 07:01:49 +0000
Subject: [PATCH] 100l, fix missing decrement on split PGS packets.

Originally committed as revision 25810 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavcodec/pgssubdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index c283b9c0c37..9ee1ded541d 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -182,6 +182,7 @@ static int parse_picture_segment(AVCodecContext *avctx,
 
         memcpy(ctx->picture.rle + ctx->picture.rle_data_len, buf, buf_size);
         ctx->picture.rle_data_len += buf_size;
+        ctx->picture.rle_remaining_len -= buf_size;
 
         return 0;
     }
-- 
GitLab