From 904bc6b80a1a169e38804c690a870ee290a7665c Mon Sep 17 00:00:00 2001 From: Thorsten Jordan Date: Tue, 22 Apr 2008 20:21:21 +0000 Subject: Make Xvid wrapper use threads (with support for newest CVS Xvid only) Patch by Thorsten Jordan ( tjordan macrosystem de ) Originally committed as revision 12928 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/libxvidff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavcodec/libxvidff.c') diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index af90f7e207..492f0a8412 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -192,10 +192,11 @@ av_cold int ff_xvid_encode_init(AVCodecContext *avctx) { /* XviD can determine the proper profile to use */ /* xvid_enc_create.profile = XVID_PROFILE_S_L3; */ - /* We don't use zones or threads */ + /* We don't use zones */ xvid_enc_create.zones = NULL; xvid_enc_create.num_zones = 0; - xvid_enc_create.num_threads = 0; + + xvid_enc_create.num_threads = avctx->thread_count; xvid_enc_create.plugins = plugins; xvid_enc_create.num_plugins = 0; -- cgit v1.2.3