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>
pull/53/head
Michael Niedermayer 11 years ago
parent 1a0370ad94
commit 48ad1f392a
  1. 2
      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;

Loading…
Cancel
Save