[FFmpeg-cvslog] decode_audio3: initialize AVFrame

Ilkka Ollakka git at videolan.org
Fri Nov 2 15:12:06 CET 2012


ffmpeg | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Oct 31 11:24:36 2012 +0200| [6d1270a0f9ededd37ed14bde52b8ee69b99e8a7f] | committer: Anton Khirnov

decode_audio3: initialize AVFrame

Same fix and issue as in a25d912dca9cd553440167e0476c47581359c0fc

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavcodec/utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 58dfe97..78726ae 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1344,7 +1344,7 @@ int attribute_align_arg avcodec_decode_audio3(AVCodecContext *avctx, int16_t *sa
                                               int *frame_size_ptr,
                                               AVPacket *avpkt)
 {
-    AVFrame frame;
+    AVFrame frame = {0};
     int ret, got_frame = 0;
 
     if (avctx->get_buffer != avcodec_default_get_buffer) {



More information about the ffmpeg-cvslog mailing list