From subversion at mplayerhq.hu Fri May 2 14:48:33 2025 From: subversion at mplayerhq.hu (ib) Date: Fri, 2 May 2025 14:48:33 +0300 (EEST) Subject: [MPlayer-cvslog] r38680 - trunk/gui/util/bitmap.c Message-ID: <20250502114833.41FD068A2DE@ffbox0-bg.mplayerhq.hu> Author: ib Date: Fri May 2 14:48:32 2025 New Revision: 38680 Log: Remove the call to avcodec_close() It is no longer available in FFmpeg, and closing the codec is already done by avcodec_free_context(). Modified: trunk/gui/util/bitmap.c Modified: trunk/gui/util/bitmap.c ============================================================================== --- trunk/gui/util/bitmap.c Tue Apr 1 22:53:08 2025 (r38679) +++ trunk/gui/util/bitmap.c Fri May 2 14:48:32 2025 (r38680) @@ -188,11 +188,10 @@ static int pngRead(const char *fname, gu } avcodec_send_packet(avctx, NULL); // flush the decoder - avcodec_close(avctx); + avcodec_free_context(&avctx); av_frame_free(&frame); av_packet_free(&pkt); - avcodec_free_context(&avctx); av_free(data); return !(decode_ok && img->Bpp);