Skip to content

Commit

Permalink
ffmpeg Update: Drop depreacted avcodec_close and use avcodec_free_con…
Browse files Browse the repository at this point in the history
…text only
  • Loading branch information
hashworks committed May 25, 2024
1 parent 4c83288 commit d04bd4b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_avc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ bool DecoderAVC::InitCodec()

void DecoderAVC::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_avc_nv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ bool DecoderAVCxNV::InitCodec()

void DecoderAVCxNV::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_avc_xma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ bool DecoderAVCxXMA::InitCodec()

void DecoderAVCxXMA::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_hevc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ bool DecoderHEVC::InitCodec()

void DecoderHEVC::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_hevc_nv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ bool DecoderHEVCxNV::InitCodec()

void DecoderHEVCxNV::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_hevc_xma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ bool DecoderHEVCxXMA::InitCodec()

void DecoderHEVCxXMA::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down
1 change: 0 additions & 1 deletion src/projects/transcoder/codec/decoder/decoder_vp8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ bool DecoderVP8::InitCodec()

void DecoderVP8::UninitCodec()
{
::avcodec_close(_context);
::avcodec_free_context(&_context);

_context = nullptr;
Expand Down

0 comments on commit d04bd4b

Please sign in to comment.