mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 12:47:46 +00:00
Merge pull request #14199 from unknownbrackets/ffmpeg-update
Mpeg: Set low latency flag for video decode
This commit is contained in:
commit
7cefafeb31
@ -805,6 +805,8 @@ static bool InitPmp(MpegContext * ctx){
|
||||
return false;
|
||||
}
|
||||
|
||||
pmp_CodecCtx->flags |= AV_CODEC_FLAG_OUTPUT_CORRUPT | AV_CODEC_FLAG_LOW_DELAY;
|
||||
|
||||
// each pmp video context is corresponding to one pmp video codec
|
||||
mediaengine->m_pCodecCtxs[0] = pmp_CodecCtx;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user