1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-29 22:00:58 +02:00

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

View File

@ -1174,7 +1174,7 @@ static int dvbsub_parse_clut_segment(AVCodecContext *avctx,
if (depth == 0) { if (depth == 0) {
av_log(avctx, AV_LOG_ERROR, "Invalid clut depth 0x%x!\n", *buf); av_log(avctx, AV_LOG_ERROR, "Invalid clut depth 0x%x!\n", *buf);
return AVERROR_INVALIDDATA; return 0;
} }
full_range = (*buf++) & 1; full_range = (*buf++) & 1;