]> git.sesse.net Git - vlc/commitdiff
use memset
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 20 Aug 2006 20:56:33 +0000 (20:56 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 20 Aug 2006 20:56:33 +0000 (20:56 +0000)
src/osd/osd_parser.c

index 6efe56d0b6d799f4b383cc832f52185fce119cfa..b791d89e5cfabbbc9bebf73297528aa0d0eb6b83 100644 (file)
@@ -62,7 +62,10 @@ static picture_t *osd_LoadImage( vlc_object_t *p_this, const char *psz_filename
 {
     picture_t *p_pic = NULL;
     image_handler_t *p_image;
-    video_format_t fmt_in = {0}, fmt_out = {0};
+    video_format_t fmt_in, fmt_out;
+
+    memset( &fmt_in, 0, sizeof(video_format_t) );
+    memset( &fmt_out, 0, sizeof(video_format_t) );
 
     fmt_out.i_chroma = VLC_FOURCC('Y','U','V','A');
     p_image = image_HandlerCreate( p_this );