[FFmpeg-cvslog] avplay: free the active audio packet at exit.
Justin Ruggles
git at videolan.org
Thu Oct 13 06:01:50 CEST 2011
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Oct 12 14:44:02 2011 -0400| [c74f1f47b29dea6f4b5766a8d5a66bfeca35f9c3] | committer: Justin Ruggles
avplay: free the active audio packet at exit.
fixes a memleak
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c74f1f47b29dea6f4b5766a8d5a66bfeca35f9c3
---
avplay.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/avplay.c b/avplay.c
index c2b5e4b..a4b58a5 100644
--- a/avplay.c
+++ b/avplay.c
@@ -2268,6 +2268,7 @@ static void stream_component_close(VideoState *is, int stream_index)
SDL_CloseAudio();
packet_queue_end(&is->audioq);
+ av_free_packet(&is->audio_pkt);
if (is->reformat_ctx)
av_audio_convert_free(is->reformat_ctx);
is->reformat_ctx = NULL;
More information about the ffmpeg-cvslog
mailing list