diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-08-14 00:17:43 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-08-14 00:17:47 +0200 |
commit | ad1b571b268223155ebeffbed05c61813a3138b9 (patch) | |
tree | 17a8dd65e1efbe1c10deb0113eb057d248deb870 | |
parent | e260c8180ec6c6a6258d2aa4fd19b43f8e79de3f (diff) | |
parent | 159a06dfc83d189f753c4583583ddfb571552ff5 (diff) | |
download | ffmpeg-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.c | 3 |
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; } |