From 23a20180338226f8bcba05c46867f38eff750cc3 Mon Sep 17 00:00:00 2001 From: Fiona Glaser Date: Tue, 8 Jun 2010 15:38:32 -0700 Subject: [PATCH] Fix crash in fake-interlaced at some resolutions --- common/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/frame.c b/common/frame.c index f7743952..90a8aceb 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++ ) -- 2.39.5