summaryrefslogtreecommitdiff
path: root/libavcodec/libxvidff.c
diff options
context:
space:
mode:
authorThorsten Jordan <tjordan@ macrosystem.de>2008-04-22 20:21:21 +0000
committerRobert Swain <robert.swain@gmail.com>2008-04-22 20:21:21 +0000
commit904bc6b80a1a169e38804c690a870ee290a7665c (patch)
treefd727e367df0d0dae5549c52a0199b2256202016 /libavcodec/libxvidff.c
parentc48da33c6325393125ad3fb0f116a43399202120 (diff)
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
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r--libavcodec/libxvidff.c5
1 files changed, 3 insertions, 2 deletions
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;