[x264-devel] commit: Fix Avisynth input (Yusuke Nakamura )

git at videolan.org git at videolan.org
Wed Jun 2 10:37:01 CEST 2010


x264 | branch: master | Yusuke Nakamura <muken.the.vfrmaniac at gmail.com> | Wed Jun  2 17:02:31 2010 +0900| [d0d8751af40485b0ec08a579672e804a33d76714] | committer: Jason Garrett-Glaser 

Fix Avisynth input
Regression in r1624.  A more permanent solution to the problem will be committed later.

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

 input/avs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/input/avs.c b/input/avs.c
index 5489a5e..9bf486b 100644
--- a/input/avs.c
+++ b/input/avs.c
@@ -280,9 +280,9 @@ static int get_frame_total( hnd_t handle )
 
 static int picture_alloc( x264_picture_t *pic, int i_csp, int i_width, int i_height )
 {
+    memset( pic, 0, sizeof( x264_picture_t ) );
     pic->img.i_csp = i_csp;
     pic->img.i_plane = 3;
-    pic->param = NULL;
     pic->i_pic_struct = PIC_STRUCT_AUTO;
     return 0;
 }



More information about the x264-devel mailing list