mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
fix ffm 7.xx
Origin commit data
------------------
Branch: ni/coolstream
Commit: c9c72541b5
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:
@@ -197,9 +197,14 @@ cDvbSubtitleConverter::cDvbSubtitleConverter(void)
|
||||
|
||||
cDvbSubtitleConverter::~cDvbSubtitleConverter()
|
||||
{
|
||||
if (avctx) {
|
||||
if (avctx)
|
||||
{
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 83, 100)
|
||||
avcodec_close(avctx);
|
||||
av_free(avctx);
|
||||
#else
|
||||
avcodec_free_context(&avctx);
|
||||
#endif
|
||||
avctx = NULL;
|
||||
}
|
||||
delete bitmaps;
|
||||
|
@@ -218,6 +218,7 @@ void CFfmpegDec::DeInit(void)
|
||||
{
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 83, 100)
|
||||
avcodec_close(c);
|
||||
avcodec_free_context(&c);
|
||||
#else
|
||||
avcodec_free_context(&c);
|
||||
#endif
|
||||
@@ -285,7 +286,12 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
|
||||
SwrContext *swr = swr_alloc();
|
||||
if (!swr) {
|
||||
mutex.lock();
|
||||
#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(57, 83, 100)
|
||||
avcodec_close(c);
|
||||
avcodec_free_context(&c);
|
||||
#else
|
||||
avcodec_free_context(&c);
|
||||
#endif
|
||||
mutex.unlock();
|
||||
DeInit();
|
||||
Status=DATA_ERR;
|
||||
|
Reference in New Issue
Block a user