1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2024-12-23 15:53:08 +00:00

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>
This commit is contained in:
Michael Niedermayer 2013-12-17 16:27:36 +01:00
parent 1a0370ad94
commit 48ad1f392a

View File

@ -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;