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>
pull/144/head
Michael Niedermayer 9 years ago
parent 2ae45816b2
commit e5774f28d1
  1. 1
      libavcodec/dvbsubdec.c

@ -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