From e5774f28d15887d36da25ae1ef2f1b3d7a75f449 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 4 Aug 2015 23:43:57 +0200 Subject: [PATCH] avcodec/dvbsubdec: Do not stop decoding at a invalid depth This corrects parsing the later elements Fixes Ticket4754 Signed-off-by: Michael Niedermayer --- libavcodec/dvbsubdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 426418beab..ff835abe33 100644 --- a/libavcodec/dvbsubdec.c +++ b/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;