Commit 53df56a9 authored by Filip Roséen's avatar Filip Roséen Committed by Thomas Guillem

video_format: fix initialization of f_pose_fov_degrees

We cannot initialize video_format_t.f_pose_fov_degrees in
es_format_Init given that it is a member of video_format_t, meaning
that it will be overwritten on invocations of video_format_Init.

These changes simply moves the initialization to where it actually
belongs.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1965d854
......@@ -339,6 +339,7 @@ static inline void video_format_Init( video_format_t *p_src, vlc_fourcc_t i_chro
p_src->i_chroma = i_chroma;
p_src->i_sar_num = p_src->i_sar_den = 1;
p_src->p_palette = NULL;
p_src->f_pose_fov_degrees = DEFAULT_FIELD_OF_VIEW_DEGREES;
}
/**
......
......@@ -454,8 +454,6 @@ void es_format_Init( es_format_t *fmt,
memset( &fmt->video, 0, sizeof(video_format_t) );
memset( &fmt->subs, 0, sizeof(subs_format_t) );
fmt->video.f_pose_fov_degrees = DEFAULT_FIELD_OF_VIEW_DEGREES;
fmt->b_packetized = true;
fmt->i_bitrate = 0;
fmt->i_extra = 0;
......
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