ffplay: fix memleak in audio_thread

Signed-off-by: LiuQi <li...@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)

Attachment: 0001-ffplay-fix-memleak-in-audio_thread.patch
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to