aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-08-04 15:01:22 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-08-04 15:01:22 +0200
commit087c0a0a934abcb8e608020cf907c9e88b75f401 (patch)
treeeb3390d9081de6d9bd29d101089744c73c9bf3bb
parent4c4f14c7179c1c79f71a3036e537b1c1dbc50030 (diff)
downloadffmpeg-087c0a0a934abcb8e608020cf907c9e88b75f401.tar.gz
lavc/dvbsub: Do not fail on clut depth 0.
Fixes ticket #4752.
-rw-r--r--libavcodec/dvbsubdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 71dd1fea8b..426418beab 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -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;