diff options
author | JULIAN GARDNER <joolzg@btinternet.com> | 2011-10-14 16:08:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-14 20:19:59 +0200 |
commit | f12c7ad86d0f47ab26f2b49060683009e8e3beeb (patch) | |
tree | 874c997930e6850fb2ac26302b9814b571823d3d /libavcodec | |
parent | 7e0f4f9d0fd298eaf0f45a74e95b2471ccf34077 (diff) | |
download | ffmpeg-f12c7ad86d0f47ab26f2b49060683009e8e3beeb.tar.gz |
dvbsubdec: fix buf ptr in dvbsub_parse_region_segment()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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) |