[FFmpeg-cvslog] r22638 - trunk/libavcodec/ffv1.c

michael subversion
Mon Mar 22 22:12:31 CET 2010


Author: michael
Date: Mon Mar 22 22:12:31 2010
New Revision: 22638

Log:
Disallow VLC coding with more than 8 bits as there are several bugs
in that code that could lead to broken files.
AC coding is unaffected.

Modified:
   trunk/libavcodec/ffv1.c

Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c	Mon Mar 22 21:18:42 2010	(r22637)
+++ trunk/libavcodec/ffv1.c	Mon Mar 22 22:12:31 2010	(r22638)
@@ -673,6 +673,10 @@ static av_cold int encode_init(AVCodecCo
             av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample invalid\n");
             return -1;
         }
+        if(!s->ac){
+            av_log(avctx, AV_LOG_ERROR, "bits_per_raw_sample of more than 8 needs -coder 1 currently\n");
+            return -1;
+        }
         s->version= 1;
     case PIX_FMT_YUV444P:
     case PIX_FMT_YUV422P:



More information about the ffmpeg-cvslog mailing list