From ac1a48fa044f7bd505010900344f6eb1b52d5fb7 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Thu, 30 Jun 2016 18:05:53 +0200 Subject: [PATCH] am7xxx-play: get rid of the deprecated function av_free_packet() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This also fixes this warning: warning: ‘av_free_packet’ is deprecated --- examples/am7xxx-play.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index ad2ca6f..46a91c9 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -458,8 +458,8 @@ static int am7xxx_play(const char *input_format_string, } end_while: if (!output_ctx.raw_output && got_packet) - av_free_packet(&out_packet); - av_free_packet(&in_packet); + av_packet_unref(&out_packet); + av_packet_unref(&in_packet); } sws_freeContext(sw_scale_ctx); -- 2.1.4