[FFmpeg-cvslog] r20258 - trunk/libavcodec/huffyuv.c

astrange subversion
Sat Oct 17 00:55:34 CEST 2009


Author: astrange
Date: Sat Oct 17 00:55:34 2009
New Revision: 20258

Log:
Huffyuv: Remove unnecessary allocation in alloc_temp().

RGB only needs one temp array.

Modified:
   trunk/libavcodec/huffyuv.c

Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c	Sat Oct 17 00:52:23 2009	(r20257)
+++ trunk/libavcodec/huffyuv.c	Sat Oct 17 00:55:34 2009	(r20258)
@@ -406,9 +406,7 @@ static av_cold void alloc_temp(HYuvConte
             s->temp[i]= av_malloc(s->width + 16);
         }
     }else{
-        for(i=0; i<2; i++){
-            s->temp[i]= av_malloc(4*s->width + 16);
-        }
+        s->temp[0]= av_malloc(4*s->width + 16);
     }
 }
 



More information about the ffmpeg-cvslog mailing list