dvbsub_parse_clut_segment: Changed return on fail (from 0 to -1, as expected by the caller).

This commit is contained in:
Carlos Fernandez 2017-01-30 15:14:16 -08:00
parent 12467815ae
commit 85751cee2b

View File

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