History

stereo3d: initialize AVStereo3D to zero

Felix Abecassis committed 12 years ago

Commit 159a06d1 parent 4e629ef1 file · +3 −0Browse files

Unified · Split

libavutil/stereo3d.c+3−0
@@ -19,6 +19,7 @@ · 18 unmodified lines
19 */19 */
20 20
21#include <stdint.h>21#include <stdint.h>
22#include <string.h>
22 23
23#include "mem.h"24#include "mem.h"
24#include "stereo3d.h"25#include "stereo3d.h"
@@ -36,5 +37,7 @@ AVStereo3D *av_stereo3d_create_side_data(AVFrame *frame) · 11 unmodified lines
36 if (!side_data)37 if (!side_data)
37 return NULL;38 return NULL;
38 39
40 memset(side_data->data, 0, sizeof(AVStereo3D));
41
39 return (AVStereo3D *)side_data->data;42 return (AVStereo3D *)side_data->data;
40}43}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t