Commit 48ad1f39 authored by Michael Niedermayer's avatar Michael Niedermayer

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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1a0370ad
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment