diff mpegvideo.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 2b20ad98e424
children cf4d575b1982
line wrap: on
line diff
--- a/mpegvideo.c	Mon Dec 01 22:07:00 2008 +0000
+++ b/mpegvideo.c	Tue Dec 02 10:43:08 2008 +0000
@@ -289,6 +289,7 @@
 
      //FIXME should be linesize instead of s->width*2 but that is not known before get_buffer()
     CHECKED_ALLOCZ(s->me.scratchpad,  (s->width+64)*4*16*2*sizeof(uint8_t))
+    s->me.temp=         s->me.scratchpad;
     s->rd_scratchpad=   s->me.scratchpad;
     s->b_scratchpad=    s->me.scratchpad;
     s->obmc_scratchpad= s->me.scratchpad + 16;
@@ -315,6 +316,7 @@
 
     av_freep(&s->allocated_edge_emu_buffer); s->edge_emu_buffer= NULL;
     av_freep(&s->me.scratchpad);
+    s->me.temp=
     s->rd_scratchpad=
     s->b_scratchpad=
     s->obmc_scratchpad= NULL;
@@ -331,6 +333,7 @@
     COPY(allocated_edge_emu_buffer);
     COPY(edge_emu_buffer);
     COPY(me.scratchpad);
+    COPY(me.temp);
     COPY(rd_scratchpad);
     COPY(b_scratchpad);
     COPY(obmc_scratchpad);