[vlc-devel] [PATCH] transcode: Fix multithreaded encoding
Rafaël Carré
rafael.carre at gmail.com
Mon Nov 8 15:59:44 CET 2010
---
modules/stream_out/transcode/video.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c
index a26c8d0..e770a60 100644
--- a/modules/stream_out/transcode/video.c
+++ b/modules/stream_out/transcode/video.c
@@ -237,6 +237,9 @@ int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
id->p_encoder->fmt_in.video.i_frame_rate_base = ENC_FRAMERATE_BASE;
id->p_encoder->i_threads = p_sys->i_threads;
+ /* We pass down the number of desired threads to the encoder (avcodec/x264)
+ * But why would we want to run encoder asynchronously to the decoder ?? */
+ p_sys->i_threads = 0;
id->p_encoder->p_cfg = p_sys->p_video_cfg;
id->p_encoder->p_module =
--
1.7.3.2
More information about the vlc-devel
mailing list