Use the new AVIOContext destructor.

(cherry picked from commit 6f554521af)
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Anton Khirnov 2017-09-01 02:16:33 -03:00 committed by James Almer
parent b12e4d3bb8
commit 78a7af823b
10 changed files with 11 additions and 11 deletions

View file

@ -145,7 +145,7 @@ static void hds_free(AVFormatContext *s)
if (os->ctx && os->ctx_inited)
av_write_trailer(os->ctx);
if (os->ctx)
av_freep(&os->ctx->pb);
avio_context_free(&os->ctx->pb);
if (os->ctx)
avformat_free_context(os->ctx);
av_freep(&os->metadata);