aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-14 00:17:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-14 00:17:47 +0200
commitad1b571b268223155ebeffbed05c61813a3138b9 (patch)
tree17a8dd65e1efbe1c10deb0113eb057d248deb870
parente260c8180ec6c6a6258d2aa4fd19b43f8e79de3f (diff)
parent159a06dfc83d189f753c4583583ddfb571552ff5 (diff)
downloadffmpeg-ad1b571b268223155ebeffbed05c61813a3138b9.tar.gz
Merge commit '159a06dfc83d189f753c4583583ddfb571552ff5'
* commit '159a06dfc83d189f753c4583583ddfb571552ff5': stereo3d: initialize AVStereo3D to zero Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/stereo3d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/stereo3d.c b/libavutil/stereo3d.c
index a44af21184..50cd928de4 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;
}