[FFmpeg-cvslog] lavc/dvbsub: Do not fail on clut depth 0.

Carl Eugen Hoyos git at videolan.org
Tue Aug 4 15:04:23 CEST 2015


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Aug  4 15:01:22 2015 +0200| [087c0a0a934abcb8e608020cf907c9e88b75f401] | committer: Carl Eugen Hoyos

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

Fixes ticket #4752.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=087c0a0a934abcb8e608020cf907c9e88b75f401
---

 libavcodec/dvbsubdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index 71dd1fe..426418b 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;



More information about the ffmpeg-cvslog mailing list