From 85751cee2b87176efd5e2684181d1ba00d0cb9d1 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Mon, 30 Jan 2017 15:14:16 -0800 Subject: [PATCH] dvbsub_parse_clut_segment: Changed return on fail (from 0 to -1, as expected by the caller). --- src/lib_ccx/dvb_subtitle_decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_ccx/dvb_subtitle_decoder.c b/src/lib_ccx/dvb_subtitle_decoder.c index e00adbe6..874fe466 100644 --- a/src/lib_ccx/dvb_subtitle_decoder.c +++ b/src/lib_ccx/dvb_subtitle_decoder.c @@ -1128,7 +1128,7 @@ static int dvbsub_parse_clut_segment(void *dvb_ctx, const uint8_t *buf, if (depth == 0) { mprint("Invalid clut depth 0x%x!\n", *buf); - return 0; + return -1; } full_range = (*buf++) & 1;