diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-17 16:27:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-08 23:56:05 +0100 |
commit | 48ad1f392a0f702cdef521483447301abf6ddee3 (patch) | |
tree | 7ef08a9c493cfda899fa49eed8c6e95c40681208 /libavcodec | |
parent | 1a0370ad94de094a5ac754e790d4ec8d8d0d9ee7 (diff) | |
download | ffmpeg-48ad1f392a0f702cdef521483447301abf6ddee3.tar.gz |
avcodec/libstagefright: drop dependancy on sizeof(AVFrame)
untested (noone tested within about a month) and the change is
quite trivial so should be ok. While the code before this change
is broken.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libstagefright.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp index bb49d8a625..346cc9ce60 100644 --- a/libavcodec/libstagefright.cpp +++ b/libavcodec/libstagefright.cpp @@ -179,7 +179,7 @@ void* decode_thread(void *arg) sp<MetaData> outFormat = (*s->decoder)->getFormat(); outFormat->findInt32(kKeyWidth , &w); outFormat->findInt32(kKeyHeight, &h); - frame->vframe = (AVFrame*)av_mallocz(sizeof(AVFrame)); + frame->vframe = av_frame_alloc(); if (!frame->vframe) { frame->status = AVERROR(ENOMEM); decode_done = 1; |