threadless threads warning
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Feb 2004 22:18:33 +0000 (22:18 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Feb 2004 22:18:33 +0000 (22:18 +0000)
Originally committed as revision 2776 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index 0d9d69d..8f9ad0f 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2036,6 +2036,9 @@ static void opt_sc_threshold(const char *arg)
 static void opt_thread_count(const char *arg)
 {
     thread_count= atoi(arg);
+#ifndef HAVE_PTHREADS
+    fprintf(stderr, "Warning: not compiled with thread support, using thread emulation\n");
+#endif
 }
 
 static void opt_audio_bitrate(const char *arg)