Commit 087c0a0a authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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

Fixes ticket #4752.
parent 4c4f14c7
...@@ -1174,7 +1174,7 @@ static int dvbsub_parse_clut_segment(AVCodecContext *avctx, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment