mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
ffmpeg: Don't ask for multi-threaded decoding
For whatever reason, our version of ffmpeg has problems with it, and I don't care enough to dig deep. See PR #13806
This commit is contained in:
parent
609e7f13c9
commit
b173e0f4a4
3 changed files with 3 additions and 8 deletions
|
@ -521,11 +521,7 @@ bool MediaEngine::setVideoStream(int streamNum, bool force) {
|
|||
|
||||
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);
|
||||
int openResult = avcodec_open2(m_pCodecCtx, pCodec, &opt);
|
||||
av_dict_free(&opt);
|
||||
int openResult = avcodec_open2(m_pCodecCtx, pCodec, nullptr);
|
||||
if (openResult < 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -107,12 +107,10 @@ bool SimpleAudio::OpenCodec(int block_align) {
|
|||
codecCtx_->block_align = block_align;
|
||||
}
|
||||
|
||||
AVDictionary *opts = 0;
|
||||
int retval = avcodec_open2(codecCtx_, codec_, &opts);
|
||||
int retval = avcodec_open2(codecCtx_, codec_, nullptr);
|
||||
if (retval < 0) {
|
||||
ERROR_LOG(ME, "Failed to open codec: retval = %i", retval);
|
||||
}
|
||||
av_dict_free(&opts);
|
||||
codecOpen_ = true;
|
||||
return retval >= 0;
|
||||
#else
|
||||
|
|
|
@ -268,6 +268,7 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) {
|
|||
}
|
||||
} else {
|
||||
type = MemoryExceptionType::UNKNOWN;
|
||||
|
||||
}
|
||||
|
||||
g_lastMemoryExceptionType = type;
|
||||
|
|
Loading…
Add table
Reference in a new issue