Commit de82b757 authored by Ilkka Ollakka's avatar Ilkka Ollakka

x264: use x264_picture_init() from X264_BUILD >= 98

(cherry picked from commit aa34b13d14c5fe5a5b5abdf0010aace03f7a7d70)
Signed-off-by: default avatarIlkka Ollakka <ileoo@videolan.org>
parent de447780
......@@ -1306,7 +1306,11 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
int i_nal, i_out, i;
/* init pic */
#if X264_BUILD >= 98
x264_picture_init( &pic );
#else
memset( &pic, 0, sizeof( x264_picture_t ) );
#endif
pic.i_pts = p_pict->date;
pic.img.i_csp = X264_CSP_I420;
pic.img.i_plane = p_pict->i_planes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment