Skip to content

Commit 575a3ae

Browse files
committed
Replace avcodec_close with avcodec_free_context
avcodec_close (AVCodecContext *avctx) removing in ffmpeg 7.2 and was deprecated for couple years Signed-off-by: Vlad (Kuzmin) Erium <libalias@gmail.com>
1 parent 2422ee5 commit 575a3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ffmpeg.imageio/ffmpeginput.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ bool
581581
FFmpegInput::close(void)
582582
{
583583
if (m_codec_context)
584-
avcodec_close(m_codec_context);
584+
avcodec_free_context(&m_codec_context);
585585
if (m_format_context) {
586586
avformat_close_input(&m_format_context);
587587
av_free(m_format_context); // will free m_codec and m_codec_context

0 commit comments

Comments
 (0)