From 0d6b4351c64664d8c2f56d0ddb5e38b800ed8751 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 27 May 2020 09:30:46 +0200 Subject: Remove unnecessary use of avcodec_close(). Replace it with avcodec_free_context() or drop it completely as appropriate. --- tests/api/api-band-test.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/api/api-band-test.c') diff --git a/tests/api/api-band-test.c b/tests/api/api-band-test.c index a84f6b7e55..257e741694 100644 --- a/tests/api/api-band-test.c +++ b/tests/api/api-band-test.c @@ -198,7 +198,6 @@ static int video_decode(const char *input_filename) av_packet_unref(&pkt); av_frame_free(&fr); - avcodec_close(ctx); avformat_close_input(&fmt_ctx); avcodec_free_context(&ctx); av_freep(&byte_buffer); -- cgit v1.2.3