- vout_InitPicture( VLC_OBJECT(p_stream), p_pic, VLC_CODEC_I420,
- i_width, i_height,
- i_width * VOUT_ASPECT_FACTOR / i_height );
+ if( picture_Setup( p_pic, VLC_CODEC_I420,
+ i_width, i_height,
+ i_width * VOUT_ASPECT_FACTOR / i_height ) )
+ {
+ msg_Err( p_stream, "unknown chroma" );
+ return -1;
+ }