diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-09-24 07:17:13 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-09-24 12:31:24 +0200 |
commit | c084a975aa13eb1d0161f36a06051a9b2d4abb83 (patch) | |
tree | 241e40266499ec952f3b7dc9f310046169f946c1 /libavcodec | |
parent | a83499b13b5bbe7289f33b757313efe83b7698fb (diff) | |
download | ffmpeg-c084a975aa13eb1d0161f36a06051a9b2d4abb83.tar.gz |
lavc: use av_mallocz to allocate AVFrames.
Otherwise the frame is uninitialized, so avcodec_get_frame_defaults()
cannot determine whether to free extended_data.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/utils.c | 2 |
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; |