mirror of https://github.com/mpv-player/mpv
audio/ad_spdif: utilize defined freeing function for AVIOContext
This has been around since FFmpeg/FFmpeg@b12e4d3bb8 from 2017. Thanks to @mkver for noticing this.
This commit is contained in:
parent
951153e733
commit
fef04315a1
|
@ -89,7 +89,7 @@ static void destroy(struct mp_filter *da)
|
|||
av_write_trailer(lavf_ctx);
|
||||
if (lavf_ctx->pb)
|
||||
av_freep(&lavf_ctx->pb->buffer);
|
||||
av_freep(&lavf_ctx->pb);
|
||||
avio_context_free(&lavf_ctx->pb);
|
||||
avformat_free_context(lavf_ctx);
|
||||
spdif_ctx->lavf_ctx = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue