From f12c7ad86d0f47ab26f2b49060683009e8e3beeb Mon Sep 17 00:00:00 2001 From: JULIAN GARDNER Date: Fri, 14 Oct 2011 16:08:06 +0200 Subject: [PATCH] dvbsubdec: fix buf ptr in dvbsub_parse_region_segment() Signed-off-by: Michael Niedermayer --- libavcodec/dvbsubdec.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 5f953534d4..7a3e481c37 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1058,9 +1058,10 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx, } region->clut = *buf++; - if (region->depth == 8) + if (region->depth == 8) { region->bgcolor = *buf++; - else { + buf += 1; + } else { buf += 1; if (region->depth == 4)