[FFmpeg-cvslog] avcodec/libstagefright: drop dependancy on sizeof(AVFrame)

Michael Niedermayer git at videolan.org
Wed Jan 8 23:56:54 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 17 16:27:36 2013 +0100| [48ad1f392a0f702cdef521483447301abf6ddee3] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48ad1f392a0f702cdef521483447301abf6ddee3
---

 libavcodec/libstagefright.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libstagefright.cpp b/libavcodec/libstagefright.cpp
index bb49d8a..346cc9c 100644
--- a/libavcodec/libstagefright.cpp
+++ b/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;



More information about the ffmpeg-cvslog mailing list