diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-02-19 20:29:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-02-19 20:29:26 +0000 |
commit | 16806499fc13ec0a7664186a42a48d9154b2a8a3 (patch) | |
tree | cab4ff221574eacb06f70720f21124da312f4c59 /ffmpeg.c | |
parent | 530d574081ee03a8bbcb408053b90155ad58a9e0 (diff) | |
download | ffmpeg-16806499fc13ec0a7664186a42a48d9154b2a8a3.tar.gz |
w32threads by (Gildas Bazin <gbazin at altern dot org>)
Originally committed as revision 2803 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2036,7 +2036,7 @@ static void opt_sc_threshold(const char *arg) static void opt_thread_count(const char *arg) { thread_count= atoi(arg); -#ifndef HAVE_PTHREADS +#if !defined(HAVE_PTHREADS) && !defined(HAVE_W32THREADS) fprintf(stderr, "Warning: not compiled with thread support, using thread emulation\n"); #endif } @@ -2399,9 +2399,9 @@ static void opt_output_file(const char *filename) exit(1); } avcodec_get_context_defaults(&st->codec); -#ifdef HAVE_PTHREADS +#if defined(HAVE_PTHREADS) || defined(HAVE_W32THREADS) if(thread_count>1) - avcodec_pthread_init(&st->codec, thread_count); + avcodec_thread_init(&st->codec, thread_count); #endif video_enc = &st->codec; @@ -2590,9 +2590,9 @@ static void opt_output_file(const char *filename) exit(1); } avcodec_get_context_defaults(&st->codec); -#ifdef HAVE_PTHREADS +#if defined(HAVE_PTHREADS) || defined(HAVE_W32THREADS) if(thread_count>1) - avcodec_pthread_init(&st->codec, thread_count); + avcodec_thread_init(&st->codec, thread_count); #endif audio_enc = &st->codec; |