mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
dont use avformat_find_stream_info, if noprobe is requested
This commit is contained in:
@@ -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://")
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
if (!context->playback->noprobe)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user