diff options
author | Thorsten Jordan <tjordan@ macrosystem.de> | 2008-04-22 20:21:21 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2008-04-22 20:21:21 +0000 |
commit | 904bc6b80a1a169e38804c690a870ee290a7665c (patch) | |
tree | fd727e367df0d0dae5549c52a0199b2256202016 /libavcodec | |
parent | c48da33c6325393125ad3fb0f116a43399202120 (diff) | |
download | ffmpeg-904bc6b80a1a169e38804c690a870ee290a7665c.tar.gz |
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')
-rw-r--r-- | libavcodec/libxvidff.c | 5 |
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; |