fix last commit

Origin commit data
------------------
Branch: ni/coolstream
Commit: 434ea92e98
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2025-06-22 (Sun, 22 Jun 2025)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
BPanther
2025-06-22 20:42:07 +02:00
committed by vanhofen
parent 6f6f3114c3
commit dfc58c00bd

View File

@@ -218,7 +218,7 @@ void CFfmpegDec::DeInit(void)
{
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 83, 100)
avcodec_close(c);
avcodec_free_context(&c);
av_free(c);
#else
avcodec_free_context(&c);
#endif
@@ -288,7 +288,7 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
mutex.lock();
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 83, 100)
avcodec_close(c);
avcodec_free_context(&c);
av_free(c);
#else
avcodec_free_context(&c);
#endif