[x264-devel] commit: Fix crash in fake-interlaced at some resolutions ( Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Wed Jun 9 18:39:05 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Jun  8 15:38:32 2010 -0700| [314229275b74548c86569b6069cf5c564e2c310d] | committer: Jason Garrett-Glaser 

Fix crash in fake-interlaced at some resolutions

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=314229275b74548c86569b6069cf5c564e2c310d
---

 common/frame.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/frame.c b/common/frame.c
index 9d630f8..212a52b 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->mb.i_mb_width*16;
     i_stride = ALIGN( i_width + 2*PADH, align );
-    i_lines  = ALIGN( h->param.i_height, 16<<h->param.b_interlaced );
+    i_lines  = h->mb.i_mb_height*16;
 
     frame->i_plane = 3;
     for( int i = 0; i < 3; i++ )



More information about the x264-devel mailing list