[FFmpeg-cvslog] r12928 - trunk/libavcodec/libxvidff.c

superdump subversion
Tue Apr 22 22:21:21 CEST 2008


Author: superdump
Date: Tue Apr 22 22:21:21 2008
New Revision: 12928

Log:
Make Xvid wrapper use threads (with support for newest CVS Xvid only)

Patch by Thorsten Jordan ( tjordan macrosystem de )


Modified:
   trunk/libavcodec/libxvidff.c

Modified: trunk/libavcodec/libxvidff.c
==============================================================================
--- trunk/libavcodec/libxvidff.c	(original)
+++ trunk/libavcodec/libxvidff.c	Tue Apr 22 22:21:21 2008
@@ -192,10 +192,11 @@ av_cold int ff_xvid_encode_init(AVCodecC
     /* 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;




More information about the ffmpeg-cvslog mailing list