From: Yusuke Nakamura Date: Wed, 2 Jun 2010 08:02:31 +0000 (+0900) Subject: Fix Avisynth input X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=d0d8751af40485b0ec08a579672e804a33d76714;p=x264.git Fix Avisynth input Regression in r1624. A more permanent solution to the problem will be committed later. --- diff --git a/input/avs.c b/input/avs.c index 5489a5e5..9bf486bd 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; }