diff options
author | JULIAN GARDNER <joolzg@btinternet.com> | 2011-10-14 18:08:06 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-14 22:19:59 +0400 |
commit | f12c7ad86d0f47ab26f2b49060683009e8e3beeb (patch) | |
tree | 874c997930e6850fb2ac26302b9814b571823d3d /libavcodec/dvbsubdec.c | |
parent | 7e0f4f9d0fd298eaf0f45a74e95b2471ccf34077 (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.c | 5 |
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) |