changeset 10042:37485479bb6e libavcodec

fix a crash in SVQ1 with cmp!=sad
author lorenm
date Tue, 11 Aug 2009 07:04:33 +0000
parents acbb86a779b8
children 5d5562aa94df
files svq1enc.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svq1enc.c	Mon Aug 10 12:34:36 2009 +0000
+++ b/svq1enc.c	Tue Aug 11 07:04:33 2009 +0000
@@ -499,6 +499,7 @@
 
     s->avctx= avctx;
     s->m.avctx= avctx;
+    s->m.me.temp      =
     s->m.me.scratchpad= av_mallocz((avctx->width+64)*2*16*2*sizeof(uint8_t));
     s->m.me.map       = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));
     s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));