From: Jason Garrett-Glaser Date: Tue, 8 Jun 2010 22:38:32 +0000 (-0700) Subject: Fix crash in fake-interlaced at some resolutions X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=b474d0e5790da0c1aa6107ef571d7572f2e94221;p=x264.git Fix crash in fake-interlaced at some resolutions --- diff --git a/common/frame.c b/common/frame.c index 9d630f8c..44c579e3 100644 --- a/common/frame.c +++ b/common/frame.c @@ -40,9 +40,9 @@ x264_frame_t *x264_frame_new( x264_t *h, int b_fdec ) CHECKED_MALLOCZERO( frame, sizeof(x264_frame_t) ); /* allocate frame data (+64 for extra data for me) */ - i_width = ALIGN( h->param.i_width, 16 ); + i_width = h->sps->i_mb_width*16; i_stride = ALIGN( i_width + 2*PADH, align ); - i_lines = ALIGN( h->param.i_height, 16<param.b_interlaced ); + i_lines = h->sps->i_mb_height*16; frame->i_plane = 3; for( int i = 0; i < 3; i++ )