libeplayer3: add hack to decrease libavcodec probe size

almost disable the libavcodec format probing when using
"myts://" instead of "file://" urls to improve startup speed
for timeshift etc
This commit is contained in:
Stefan Seyfried
2012-10-03 23:22:52 +02:00
parent ea7a8428f0
commit 4d43213158
3 changed files with 11 additions and 1 deletions

View File

@@ -809,6 +809,8 @@ int container_ffmpeg_init(Context_t *context, char * filename)
}
avContext->flags = AVFMT_FLAG_GENPTS;
if (context->playback->noprobe)
avContext->max_analyze_duration = 1;
ffmpeg_printf(20, "find_streaminfo\n");