dont use avformat_find_stream_info, if noprobe is requested

Origin commit data
------------------
Branch: master
Commit: c90e05a8f0
Author: TangoCash <eric@loxat.de>
Date: 2022-09-06 (Tue, 06 Sep 2022)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2022-09-06 14:07:09 +02:00
committed by vanhofen
parent e334906963
commit 01cf494606
3 changed files with 9 additions and 7 deletions

View File

@@ -124,7 +124,7 @@ bool cPlayback::Start(char *filename, int vpid, int vtype, int apid, int ac3, in
file = "file://";
file += filename;
if ((file.find(":31339/id=") != std::string::npos) || (file.find(":10000") != std::string::npos) || (file.find(":8001/") != std::string::npos)) // for LocalTV and Entertain-TV streaming
if ((file.find(":31339/id=") != std::string::npos) || (file.find(":17999/1:") != std::string::npos) || (file.find(":10000") != std::string::npos) || (file.find(":8001/") != std::string::npos)) // for LocalTV and Entertain-TV streaming
no_probe = true;
if (file.substr(0, 7) == "file://")

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;
}