diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 4550428a8e..3ab36c7a0e 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -547,6 +547,7 @@ static void close_stream(AVFormatContext *oc, OutputStream *ost) av_frame_free(&ost->frame); av_frame_free(&ost->tmp_frame); sws_freeContext(ost->sws_ctx); + swr_free(&ost->swr_ctx); } /**************************************************************/