Commit c74f1f47 authored by Justin Ruggles's avatar Justin Ruggles

avplay: free the active audio packet at exit.

fixes a memleak
parent cb2c4de3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment