Mercurial > libavcodec.hg
diff snow.c @ 8239:dcfdb3352dde libavcodec
Fix regression test failure with pthreads on multiprocessor systems.
Fixes issue517
author | michael |
---|---|
date | Tue, 02 Dec 2008 10:43:08 +0000 |
parents | c5276ad92ff8 |
children | 61cfb1dcfae5 |
line wrap: on
line diff
--- a/snow.c Mon Dec 01 22:07:00 2008 +0000 +++ b/snow.c Tue Dec 02 10:43:08 2008 +0000 @@ -4007,6 +4007,7 @@ s->m.flags = avctx->flags; s->m.bit_rate= avctx->bit_rate; + 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)); @@ -4435,6 +4436,7 @@ av_freep(&s->spatial_dwt_buffer); av_freep(&s->spatial_idwt_buffer); + s->m.me.temp= NULL; av_freep(&s->m.me.scratchpad); av_freep(&s->m.me.map); av_freep(&s->m.me.score_map);