diff options
author | wm4 <wm4@nowhere> | 2017-07-16 12:51:48 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-07-16 12:51:48 +0200 |
commit | ddd068491c9e8f7f77b6bba61269f867bdad204b (patch) | |
tree | 579de2a6443a52df12b1b4f813a5466eea7b7c74 /sub/sd_lavc.c | |
parent | 8e20ef4292719233d4b249ab714433e845cf6da2 (diff) | |
download | mpv-ddd068491c9e8f7f77b6bba61269f867bdad204b.tar.bz2 mpv-ddd068491c9e8f7f77b6bba61269f867bdad204b.tar.xz |
Replace remaining avcodec_close() calls
This API isn't deprecated (yet?), but it's still inferior and harder to
use than avcodec_free_context().
Leave the call only in 1 case in af_lavcac3enc.c, where we apparently
seriously close and reopen the encoder for whatever reason.
Diffstat (limited to 'sub/sd_lavc.c')
-rw-r--r-- | sub/sd_lavc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sub/sd_lavc.c b/sub/sd_lavc.c index 169a2883df..e805d5c34c 100644 --- a/sub/sd_lavc.c +++ b/sub/sd_lavc.c @@ -500,9 +500,7 @@ static void uninit(struct sd *sd) for (int n = 0; n < MAX_QUEUE; n++) clear_sub(&priv->subs[n]); - avcodec_close(priv->avctx); - av_free(priv->avctx->extradata); - av_free(priv->avctx); + avcodec_free_context(&priv->avctx); talloc_free(priv); } |