Browse Source

avcodec/dvbsubdec: Do not stop decoding at a invalid depth

This corrects parsing the later elements

Fixes Ticket4754

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
e5774f28d1
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/dvbsubdec.c

+ 0
- 1
libavcodec/dvbsubdec.c View File

@@ -1174,7 +1174,6 @@ static int dvbsub_parse_clut_segment(AVCodecContext *avctx,

if (depth == 0) {
av_log(avctx, AV_LOG_ERROR, "Invalid clut depth 0x%x!\n", *buf);
return 0;
}

full_range = (*buf++) & 1;


Loading…
Cancel
Save