diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-25 17:36:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-25 18:10:10 +0200 |
commit | 8deddc696139433d2de0dc44e4f3a2a33717ea12 (patch) | |
tree | b1aaa85cb991868e59cf72345ad5f81789753e3b | |
parent | d9d56712e931d2e35bfd19c3036fd3501e005197 (diff) | |
download | ffmpeg-8deddc696139433d2de0dc44e4f3a2a33717ea12.tar.gz |
avcodec_alloc_frame: dont zero the whole struct twice
cleaning it up is already done in avcodec_get_frame_defaults()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b95b419955..00434c9114 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -720,11 +720,12 @@ void avcodec_get_frame_defaults(AVFrame *frame) AVFrame *avcodec_alloc_frame(void) { - AVFrame *frame = av_mallocz(sizeof(AVFrame)); + AVFrame *frame = av_malloc(sizeof(AVFrame)); if (frame == NULL) return NULL; + frame->extended_data = NULL; avcodec_get_frame_defaults(frame); return frame; |