From 3c081dfd938181dcd0c7dfedbbc3db460d757e38 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 28 Oct 2015 23:48:56 +0100 Subject: Replace deprecated av_free_packet() calls av_free_packet() got finally deprecated. Use av_packet_unref() instead, which has almost the same semantics, has existed for a while, and is available in all FFmpeg and Libav versions we support. --- audio/filter/af_lavcac3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/filter/af_lavcac3enc.c b/audio/filter/af_lavcac3enc.c index 21595a656f..c1e6b964ad 100644 --- a/audio/filter/af_lavcac3enc.c +++ b/audio/filter/af_lavcac3enc.c @@ -146,7 +146,7 @@ static void uninit(struct af_instance* af) af_ac3enc_t *s = af->priv; if (s) { - av_free_packet(&s->pkt); + av_packet_unref(&s->pkt); if(s->lavc_actx) { avcodec_close(s->lavc_actx); av_free(s->lavc_actx); -- cgit v1.2.3