avcodec/dvbsubdec: Do not stop decoding at a invalid depth
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Aug 2015 21:43:57 +0000 (23:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 4 Aug 2015 22:16:43 +0000 (00:16 +0200)
This corrects parsing the later elements

Fixes Ticket4754

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/dvbsubdec.c

index 426418b..ff835ab 100644 (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;