From 159a06dfc83d189f753c4583583ddfb571552ff5 Mon Sep 17 00:00:00 2001 From: Felix Abecassis Date: Tue, 12 Aug 2014 14:56:35 +0200 Subject: [PATCH] stereo3d: initialize AVStereo3D to zero Signed-off-by: Anton Khirnov --- libavutil/stereo3d.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c index 850fd75454..2dcfddf14b 100644 --- a/libavutil/stereo3d.c +++ b/libavutil/stereo3d.c @@ -19,6 +19,7 @@ */ #include +#include #include "mem.h" #include "stereo3d.h" @@ -36,5 +37,7 @@ AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame) if (!side_data) return NULL; + memset(side_data->data, 0, sizeof(AVStereo3D)); + return (AVStereo3D *)side_data->data; }