aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-02-19 20:29:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-02-19 20:29:26 +0000
commit16806499fc13ec0a7664186a42a48d9154b2a8a3 (patch)
treecab4ff221574eacb06f70720f21124da312f4c59 /ffmpeg.c
parent530d574081ee03a8bbcb408053b90155ad58a9e0 (diff)
downloadffmpeg-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a8c3a93f6f..dec1ca6a5e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;