[FFmpeg-cvslog] dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()

JULIAN GARDNER git at videolan.org
Fri Oct 14 20:29:02 CEST 2011


ffmpeg | branch: master | JULIAN GARDNER <joolzg at btinternet.com> | Fri Oct 14 16:08:06 2011 +0200| [f12c7ad86d0f47ab26f2b49060683009e8e3beeb] | committer: Michael Niedermayer

dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()

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

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

 libavcodec/dvbsubdec.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 5f95353..7a3e481 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)



More information about the ffmpeg-cvslog mailing list