From 087c0a0a934abcb8e608020cf907c9e88b75f401 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 4 Aug 2015 15:01:22 +0200 Subject: lavc/dvbsub: Do not fail on clut depth 0. Fixes ticket #4752. --- libavcodec/dvbsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/dvbsubdec.c') diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index 71dd1fea8b..426418beab 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -1174,7 +1174,7 @@ 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 AVERROR_INVALIDDATA; + return 0; } full_range = (*buf++) & 1; -- cgit v1.2.3