summaryrefslogtreecommitdiff
path: root/libavcodec/dvbsubdec.c
diff options
context:
space:
mode:
authorJULIAN GARDNER <joolzg@btinternet.com>2011-10-14 16:08:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-14 20:19:59 +0200
commitf12c7ad86d0f47ab26f2b49060683009e8e3beeb (patch)
tree874c997930e6850fb2ac26302b9814b571823d3d /libavcodec/dvbsubdec.c
parent7e0f4f9d0fd298eaf0f45a74e95b2471ccf34077 (diff)
dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r--libavcodec/dvbsubdec.c5
1 files 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)