mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +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:
parent
1a0370ad94
commit
48ad1f392a
@ -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…
Reference in New Issue
Block a user