[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 20:38:05 CEST 2010


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

Fix crash in fake-interlaced at some resolutions

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

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

diff --git a/common/frame.c b/common/frame.c
index 9d630f8..44c579e 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<<h->param.b_interlaced );
+    i_lines  = h->sps->i_mb_height*16;
 
     frame->i_plane = 3;
     for( int i = 0; i < 3; i++ )



More information about the x264-devel mailing list