aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorFelix Abecassis <felix.abecassis@gmail.com>2014-08-12 14:56:35 +0200
committerAnton Khirnov <anton@khirnov.net>2014-08-13 17:24:18 +0000
commit159a06dfc83d189f753c4583583ddfb571552ff5 (patch)
tree9b86b3c4e671b2cafe613b081979f5cfc97b57a6 /libavutil
parent4e629ef80e62a54636cb46033998177dd08cf3ad (diff)
downloadffmpeg-159a06dfc83d189f753c4583583ddfb571552ff5.tar.gz
stereo3d: initialize AVStereo3D to zero
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/stereo3d.c3
1 files changed, 3 insertions, 0 deletions
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 <stdint.h>
+#include <string.h>
#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;
}