aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-13 14:40:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-13 15:05:42 +0200
commit838e36635ab5be523037bd6064573299f3936a37 (patch)
tree2c5aae2331d3970e978e9c66f07137398384e54e /libavcodec/utils.c
parent391b1e391187c30ae0e3bad9c0e9c40df18785bf (diff)
downloadffmpeg-838e36635ab5be523037bd6064573299f3936a37.tar.gz
avcodec: move "thread emulation" warning to common code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index ee1bfcc4ef..da12dda3fc 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -576,6 +576,9 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVD
}
avctx->frame_number = 0;
+ if (!HAVE_THREADS)
+ av_log(avctx, AV_LOG_WARNING, "Warning: not compiled with thread support, using thread emulation\n");
+
if (HAVE_THREADS && !avctx->thread_opaque) {
ret = ff_thread_init(avctx);
if (ret < 0) {