Browse Source

fix a crash in SVQ1 with cmp!=sad

Originally committed as revision 19625 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Loren Merritt 16 years ago
parent
commit
d094052c8e
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/svq1enc.c

+ 1
- 0
libavcodec/svq1enc.c View File

@@ -499,6 +499,7 @@ static av_cold int svq1_encode_init(AVCodecContext *avctx)


s->avctx= avctx; s->avctx= avctx;
s->m.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.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.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));
s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));


Loading…
Cancel
Save