diff options
author | Jan Ekström <jeebjp@gmail.com> | 2024-04-03 22:43:37 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2024-04-04 17:03:48 +0300 |
commit | fef04315a179e2e3e36aad1976a7efebcbbe6995 (patch) | |
tree | 6a48b6318e3612255c53c596b16ff22ef3a582d1 /audio | |
parent | 951153e733755efabc9f654a8052784349da389f (diff) | |
download | mpv-fef04315a179e2e3e36aad1976a7efebcbbe6995.tar.bz2 mpv-fef04315a179e2e3e36aad1976a7efebcbbe6995.tar.xz |
audio/ad_spdif: utilize defined freeing function for AVIOContext
This has been around since FFmpeg/FFmpeg@b12e4d3bb8df994f042ff1216fb8de2b967aab9e
from 2017. Thanks to @mkver for noticing this.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/decode/ad_spdif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c index fd11691326..893b8b9d55 100644 --- a/audio/decode/ad_spdif.c +++ b/audio/decode/ad_spdif.c @@ -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; } |