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:
Jan Ekström 2024-04-03 22:43:37 +03:00
parent 951153e733
commit fef04315a1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}