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

michael subversion
Sun Oct 24 14:31:13 CEST 2010


Author: michael
Date: Sun Oct 24 14:31:12 2010
New Revision: 25561

Log:
Optimize state transition table sorting in ffv1

Modified:
   trunk/libavcodec/ffv1.c

Modified: trunk/libavcodec/ffv1.c
==============================================================================
--- trunk/libavcodec/ffv1.c	Sun Oct 24 14:31:09 2010	(r25560)
+++ trunk/libavcodec/ffv1.c	Sun Oct 24 14:31:12 2010	(r25561)
@@ -885,7 +885,7 @@ static av_cold int encode_init(AVCodecCo
         do{
             changed=0;
             for(i=12; i<244; i++){
-                for(i2=i+1; i2<245; i2++){
+                for(i2=i+1; i2<245 && i2<i+4; i2++){
 #define COST(old, new) \
     s->rc_stat[old][0]*-log2((256-(new))/256.0)\
    +s->rc_stat[old][1]*-log2(     (new) /256.0)



More information about the ffmpeg-cvslog mailing list