mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
small fix
Origin commit data
------------------
Branch: master
Commit: 51a3d93e27
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2025-07-19 (Sat, 19 Jul 2025)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2868,9 +2868,10 @@ static int32_t container_ffmpeg_stop(Context_t *context)
|
|||||||
uint32_t i = 0;
|
uint32_t i = 0;
|
||||||
for (i = 0; i < IPTV_AV_CONTEXT_MAX_NUM; i += 1)
|
for (i = 0; i < IPTV_AV_CONTEXT_MAX_NUM; i += 1)
|
||||||
{
|
{
|
||||||
if (NULL != avContextTab[i])
|
if (avContextTab[i] != NULL)
|
||||||
{
|
{
|
||||||
if (0 != use_custom_io[i])
|
#ifdef USE_CUSTOM_IO
|
||||||
|
if (use_custom_io[i] != 0)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Free custom IO independently to avoid segfault/bus error
|
* Free custom IO independently to avoid segfault/bus error
|
||||||
@@ -2891,6 +2892,10 @@ static int32_t container_ffmpeg_stop(Context_t *context)
|
|||||||
av_freep(&(avContextTab[i]->pb));
|
av_freep(&(avContextTab[i]->pb));
|
||||||
use_custom_io[i] = 0;
|
use_custom_io[i] = 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
av_freep(&(avContextTab[i]->pb->buffer));
|
||||||
|
av_freep(&(avContextTab[i]->pb));
|
||||||
|
#endif
|
||||||
avformat_close_input(&avContextTab[i]);
|
avformat_close_input(&avContextTab[i]);
|
||||||
avContextTab[i] = NULL;
|
avContextTab[i] = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user