lavc/dvbsub: Do not fail on clut depth 0.

Fixes ticket #4752.
This commit is contained in:
Carl Eugen Hoyos 2015-08-04 15:01:22 +02:00
parent 4c4f14c717
commit 087c0a0a93
1 changed files with 1 additions and 1 deletions

View File

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