changeset 6665:c22932db0ebb libavcodec

Make Xvid wrapper use threads (with support for newest CVS Xvid only) Patch by Thorsten Jordan ( tjordan macrosystem de )
author superdump
date Tue, 22 Apr 2008 20:21:21 +0000
parents 646a886bafe2
children 1c76797e2216
files libxvidff.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libxvidff.c	Tue Apr 22 20:06:20 2008 +0000
+++ b/libxvidff.c	Tue Apr 22 20:21:21 2008 +0000
@@ -192,10 +192,11 @@
     /* 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;