From 48ad1f392a0f702cdef521483447301abf6ddee3 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 17 Dec 2013 16:27:36 +0100 Subject: [PATCH] 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 --- libavcodec/libstagefright.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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;