[vlc-devel] [PATCH] picture: initialize each picture with the default field of view
Steve Lhomme
robux4 at videolabs.io
Wed Jul 12 16:51:16 CEST 2017
use video_format_Init() rather than memset()
---
src/misc/picture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 7c170f0fba..59d0aaa359 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -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 );
--
2.12.1
More information about the vlc-devel
mailing list