From d04bd4b24950d66751bcf565c5d16a2993b1900d Mon Sep 17 00:00:00 2001 From: hashworks Date: Sat, 25 May 2024 21:01:39 +0200 Subject: [PATCH] ffmpeg Update: Drop depreacted avcodec_close and use avcodec_free_context only --- src/projects/transcoder/codec/decoder/decoder_avc.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_avc_nilogan.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_hevc.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp | 1 - src/projects/transcoder/codec/decoder/decoder_vp8.cpp | 1 - 8 files changed, 8 deletions(-) diff --git a/src/projects/transcoder/codec/decoder/decoder_avc.cpp b/src/projects/transcoder/codec/decoder/decoder_avc.cpp index b5bd23406..18b5a3786 100644 --- a/src/projects/transcoder/codec/decoder/decoder_avc.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_avc.cpp @@ -90,7 +90,6 @@ bool DecoderAVC::InitCodec() void DecoderAVC::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_avc_nilogan.cpp b/src/projects/transcoder/codec/decoder/decoder_avc_nilogan.cpp index 7bb959102..7c6bbcd0d 100644 --- a/src/projects/transcoder/codec/decoder/decoder_avc_nilogan.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_avc_nilogan.cpp @@ -117,7 +117,6 @@ bool DecoderAVCxNILOGAN::InitCodec() it seems that dynamic resolution is supported void DecoderAVCxNILOGAN::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp b/src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp index d5b82f2f6..83c3da39e 100644 --- a/src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp @@ -99,7 +99,6 @@ bool DecoderAVCxNV::InitCodec() void DecoderAVCxNV::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp b/src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp index 494c5f910..22d8fdfe9 100644 --- a/src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp @@ -111,7 +111,6 @@ bool DecoderAVCxXMA::InitCodec() void DecoderAVCxXMA::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_hevc.cpp b/src/projects/transcoder/codec/decoder/decoder_hevc.cpp index a60e2fd10..51f9ee993 100755 --- a/src/projects/transcoder/codec/decoder/decoder_hevc.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_hevc.cpp @@ -84,7 +84,6 @@ bool DecoderHEVC::InitCodec() void DecoderHEVC::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp b/src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp index 44fe91828..36dab687d 100644 --- a/src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp @@ -93,7 +93,6 @@ bool DecoderHEVCxNV::InitCodec() void DecoderHEVCxNV::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp b/src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp index 1f971b4f6..2c1e27a78 100644 --- a/src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp @@ -111,7 +111,6 @@ bool DecoderHEVCxXMA::InitCodec() void DecoderHEVCxXMA::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr; diff --git a/src/projects/transcoder/codec/decoder/decoder_vp8.cpp b/src/projects/transcoder/codec/decoder/decoder_vp8.cpp index 616147a7a..464b1c27d 100644 --- a/src/projects/transcoder/codec/decoder/decoder_vp8.cpp +++ b/src/projects/transcoder/codec/decoder/decoder_vp8.cpp @@ -83,7 +83,6 @@ bool DecoderVP8::InitCodec() void DecoderVP8::UninitCodec() { - ::avcodec_close(_context); ::avcodec_free_context(&_context); _context = nullptr;