Hi!

Attached patch fixes the regression reported in ticket #4752, the subtitles 
look very bad before and after but I guess this should be a different ticket.

Please comment, Carl Eugen
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index ce03e12..23f24f1 100644
--- a/libavcodec/dvbsubdec.c
+++ b/libavcodec/dvbsubdec.c
@@ -1168,7 +1168,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;
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to