Commit 90193b09 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Avcodec: disable multi-threading for MPEG-4 Video

This seems buggy in libavcodec

Close #8486
parent fa396d19
......@@ -331,6 +331,10 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
i_thread_count = __MIN( i_thread_count, 16 );
msg_Dbg( p_dec, "allowing %d thread(s) for decoding", i_thread_count );
p_sys->p_context->thread_count = i_thread_count;
if( i_codec_id == AV_CODEC_ID_MPEG4 )
p_sys->p_context->thread_count = 1;
#endif
char *hw = var_CreateGetString( p_dec, "avcodec-hw" ); /* FIXME */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment