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)
{