[vlc-commits] Avcodec: disable multi-threading for MPEG-4 Video
Jean-Baptiste Kempf
git at videolan.org
Tue Jun 18 11:11:08 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 18 11:10:26 2013 +0200| [90193b095d8aee49c23514d6557d4deaa9df7ed4] | committer: Jean-Baptiste Kempf
Avcodec: disable multi-threading for MPEG-4 Video
This seems buggy in libavcodec
Close #8486
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=90193b095d8aee49c23514d6557d4deaa9df7ed4
---
modules/codec/avcodec/video.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 72e1b3b..4738e52 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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 */
More information about the vlc-commits
mailing list