diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2009-08-11 07:04:33 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2009-08-11 07:04:33 +0000 |
commit | d094052c8e8a036666ac02bfc52bf221ad39e4c8 (patch) | |
tree | f9c120b5c5bac4e080e3cae8c92dee35a56615dd /libavcodec/svq1enc.c | |
parent | 7a9c86e9f85f0de44d5bf648f595dddae614d991 (diff) | |
download | ffmpeg-d094052c8e8a036666ac02bfc52bf221ad39e4c8.tar.gz |
fix a crash in SVQ1 with cmp!=sad
Originally committed as revision 19625 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/svq1enc.c')
-rw-r--r-- | libavcodec/svq1enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 95942870f0..357f39d887 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -499,6 +499,7 @@ static av_cold int svq1_encode_init(AVCodecContext *avctx) 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)); |