Commit a854e0fc authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

picture: initialize each picture with the default field of view

use video_format_Init() rather than memset()
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent ccaba9c3
......@@ -272,7 +272,7 @@ picture_t *picture_New( vlc_fourcc_t i_chroma, int i_width, int i_height, int i_
video_format_t fmt;
memset( &fmt, 0, sizeof(fmt) );
video_format_Init( &fmt, 0 );
video_format_Setup( &fmt, i_chroma, i_width, i_height,
i_width, i_height, i_sar_num, i_sar_den );
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