mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-01 01:17:47 +00:00
Use avformat_free_context for cleaning up muxers
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit b22dbb291d
)
This commit is contained in:
parent
8cf2d3d3d7
commit
42f97696ae
5 changed files with 7 additions and 51 deletions
|
@ -46,13 +46,7 @@ static int sap_write_close(AVFormatContext *s)
|
|||
continue;
|
||||
av_write_trailer(rtpctx);
|
||||
url_fclose(rtpctx->pb);
|
||||
av_metadata_free(&rtpctx->streams[0]->metadata);
|
||||
av_metadata_free(&rtpctx->metadata);
|
||||
av_free(rtpctx->streams[0]->codec->extradata);
|
||||
av_free(rtpctx->streams[0]->codec);
|
||||
av_free(rtpctx->streams[0]->info);
|
||||
av_free(rtpctx->streams[0]);
|
||||
av_free(rtpctx);
|
||||
avformat_free_context(rtpctx);
|
||||
s->streams[i]->priv_data = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue