Skip to content
Snippets Groups Projects
Commit 8deddc69 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec_alloc_frame: dont zero the whole struct twice


cleaning it up is already done in avcodec_get_frame_defaults()

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent d9d56712
No related branches found
No related tags found
No related merge requests found
...@@ -720,11 +720,12 @@ void avcodec_get_frame_defaults(AVFrame *frame) ...@@ -720,11 +720,12 @@ void avcodec_get_frame_defaults(AVFrame *frame)
AVFrame *avcodec_alloc_frame(void) AVFrame *avcodec_alloc_frame(void)
{ {
AVFrame *frame = av_mallocz(sizeof(AVFrame)); AVFrame *frame = av_malloc(sizeof(AVFrame));
if (frame == NULL) if (frame == NULL)
return NULL; return NULL;
frame->extended_data = NULL;
avcodec_get_frame_defaults(frame); avcodec_get_frame_defaults(frame);
return frame; return frame;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment