aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-02 10:43:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-02 10:43:08 +0000
commita6f2c0d6e5ccedf2f25c1ea9d83fc646e644ef52 (patch)
tree9acc7c507e467af9c805b7a034f9ad2f4db140fb /libavcodec/snow.c
parent1599c47ce32a993f3db3b352e313385325449e21 (diff)
downloadffmpeg-a6f2c0d6e5ccedf2f25c1ea9d83fc646e644ef52.tar.gz
Fix regression test failure with pthreads on multiprocessor systems.
Fixes issue517 Originally committed as revision 15976 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index f73ac70f32..a393811cd9 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -4007,6 +4007,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
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 @@ static av_cold void common_end(SnowContext *s){
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);