OSDN Git Service

dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()
authorJULIAN GARDNER <joolzg@btinternet.com>
Fri, 14 Oct 2011 14:08:06 +0000 (16:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Oct 2011 18:19:59 +0000 (20:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dvbsubdec.c

index 5f95353..7a3e481 100644 (file)
@@ -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)