Browse Source

stereo3d: initialize AVStereo3D to zero

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.4
Felix Abecassis Anton Khirnov 11 years ago
parent
commit
159a06dfc8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavutil/stereo3d.c

+ 3
- 0
libavutil/stereo3d.c View File

@@ -19,6 +19,7 @@
*/ */


#include <stdint.h> #include <stdint.h>
#include <string.h>


#include "mem.h" #include "mem.h"
#include "stereo3d.h" #include "stereo3d.h"
@@ -36,5 +37,7 @@ AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame)
if (!side_data) if (!side_data)
return NULL; return NULL;


memset(side_data->data, 0, sizeof(AVStereo3D));

return (AVStereo3D *)side_data->data; return (AVStereo3D *)side_data->data;
} }

Loading…
Cancel
Save