[SCM] libav/experimental: 100l, fix missing decrement on split PGS packets.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:19:21 UTC 2013


The following commit has been merged in the experimental branch:
commit 097ea6db27e0a258365e9679f54b22e743fe15e8
Author: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Date:   Tue Nov 23 07:01:49 2010 +0000

    100l, fix missing decrement on split PGS packets.
    
    Originally committed as revision 25810 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index c283b9c..9ee1ded 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;
     }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list