larger edge emu buffer (might have been too small)
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Jul 2002 13:25:01 +0000 (13:25 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 17 Jul 2002 13:25:01 +0000 (13:25 +0000)
Originally committed as revision 773 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/mpegvideo.c

index 2d67824..9f2cd49 100644 (file)
@@ -181,7 +181,7 @@ int MPV_common_init(MpegEncContext *s)
       s->ip_buffer_count= 2;
     }
     
-    CHECKED_ALLOCZ(s->edge_emu_buffer, (s->width+32)*2*17);
+    CHECKED_ALLOCZ(s->edge_emu_buffer, (s->width+64)*2*17*2); //(width + edge + align)*interlaced*MBsize*tolerance
     
     if (s->encoding) {
         int j;