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
This commit is contained in:
Thorsten Jordan 2008-04-22 20:21:21 +00:00 committed by Robert Swain
parent c48da33c63
commit 904bc6b80a
1 changed files with 3 additions and 2 deletions

View File

@ -192,10 +192,11 @@ av_cold int ff_xvid_encode_init(AVCodecContext *avctx) {
/* XviD can determine the proper profile to use */ /* XviD can determine the proper profile to use */
/* xvid_enc_create.profile = XVID_PROFILE_S_L3; */ /* 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.zones = NULL;
xvid_enc_create.num_zones = 0; 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.plugins = plugins;
xvid_enc_create.num_plugins = 0; xvid_enc_create.num_plugins = 0;