summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 7ef858153b..a3ab1344aa 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -645,7 +645,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
AVFrame *avcodec_alloc_frame(void)
{
- AVFrame *frame = av_malloc(sizeof(AVFrame));
+ AVFrame *frame = av_mallocz(sizeof(AVFrame));
if (frame == NULL)
return NULL;