Merge pull request #14199 from unknownbrackets/ffmpeg-update

Mpeg: Set low latency flag for video decode
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2021-02-21 18:42:33 +01:00
commit 7cefafeb31
2 files changed
+4

No files matched your search

+2
View File
@@ -542,6 +542,8 @@ bool MediaEngine::setVideoStream(int streamNum, bool force) {
}
#endif
m_pCodecCtx->flags |= AV_CODEC_FLAG_OUTPUT_CORRUPT | AV_CODEC_FLAG_LOW_DELAY;
AVDictionary *opt = nullptr;
// Allow ffmpeg to use any number of threads it wants. Without this, it doesn't use threads.
av_dict_set(&opt, "threads", "0", 0);