[FFmpeg-devel] [PATCH] ffplay: fix memleak in audio_thread

Steven Liu lingjiujianke at gmail.com
Fri Sep 2 10:09:31 EEST 2016


ffplay: fix memleak in audio_thread

Signed-off-by: LiuQi <liuqi at gosun.com>
---
 ffplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index adbe9cb..d7f7200 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2127,7 +2127,7 @@ static int audio_thread(void *arg)

                 av_frame_move_ref(af->frame, frame);
                 frame_queue_push(&is->sampq);
-
+                av_frame_unref(frame);
 #if CONFIG_AVFILTER
                 if (is->audioq.serial != is->auddec.pkt_serial)
                     break;
--
2.7.4 (Apple Git-66)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ffplay-fix-memleak-in-audio_thread.patch
Type: application/octet-stream
Size: 748 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160902/93a31d65/attachment.obj>


More information about the ffmpeg-devel mailing list