changeset 10419:71760101783e libavcodec

Huffyuv: Remove unnecessary allocation in alloc_temp(). RGB only needs one temp array.
author astrange
date Fri, 16 Oct 2009 22:55:34 +0000
parents 84d50ce146f7
children 442ab0c41eae
files huffyuv.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Fri Oct 16 22:52:23 2009 +0000
+++ b/huffyuv.c	Fri Oct 16 22:55:34 2009 +0000
@@ -406,9 +406,7 @@
             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);
     }
 }