[vlc-commits] picture: initialize each picture with the default field of view

Steve Lhomme git at videolan.org
Thu Jul 13 11:10:51 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Jul 11 13:53:56 2017 +0200| [a854e0fc0715c2488dcfdb681d0e3140c5850b93] | committer: 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 <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a854e0fc0715c2488dcfdb681d0e3140c5850b93
---

 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 );
 



More information about the vlc-commits mailing list