[MPlayer-cvslog] r38680 - trunk/gui/util/bitmap.c
ib
subversion at mplayerhq.hu
Fri May 2 14:48:33 EEST 2025
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);
More information about the MPlayer-cvslog
mailing list