dont use avformat_find_stream_info, if noprobe is requested

This commit is contained in:
TangoCash
2022-09-06 14:07:09 +02:00
committed by Thilo Graf
parent 1b60622d75
commit b60afebaeb
3 changed files with 9 additions and 7 deletions

View File

@@ -1845,13 +1845,15 @@ int32_t container_ffmpeg_init_av_context(Context_t *context, char *filename, uin
wrapped_set_max_analyze_duration(avContextTab[AVIdx], 1);
}
ffmpeg_printf(20, "find_streaminfo\n");
if (avformat_find_stream_info(avContextTab[AVIdx], NULL) < 0)
if (!context->playback->noprobe)
{
ffmpeg_err("Error avformat_find_stream_info\n");
}
ffmpeg_printf(20, "find_streaminfo\n");
if (avformat_find_stream_info(avContextTab[AVIdx], NULL) < 0)
{
ffmpeg_err("Error avformat_find_stream_info\n");
}
}
//for buffered io
if (avContextTab[AVIdx] != NULL && avContextTab[AVIdx]->pb != NULL && !context->playback->isTSLiveMode)
{

View File

@@ -200,7 +200,7 @@ static int PlaybackOpen(Context_t *context, PlayFiles_t *pFiles)
context->playback->uri = tUri;
}
if (strstr(uri, ":10000") || strstr(uri, ":31339/id="))
if (strstr(uri, ":10000") || strstr(uri, ":31339/id=") || strstr(uri, ":17999/1:") || strstr(uri, ":8001/"))
{
context->playback->noprobe = 1;
}