Signed-off-by: Diego Biurrun <diego@biurrun.de>
Sean McGovern authored on 2012/03/19 14:08:14... | ... |
@@ -1015,6 +1015,11 @@ static void validate_thread_parameters(AVCodecContext *avctx) |
1015 | 1015 |
avctx->thread_count = 1; |
1016 | 1016 |
avctx->active_thread_type = 0; |
1017 | 1017 |
} |
1018 |
+ |
|
1019 |
+ if (avctx->thread_count > MAX_AUTO_THREADS) |
|
1020 |
+ av_log(avctx, AV_LOG_WARNING, |
|
1021 |
+ "Application has requested %d threads. Using a thread count greater than %d is not recommended.\n", |
|
1022 |
+ avctx->thread_count, MAX_AUTO_THREADS); |
|
1018 | 1023 |
} |
1019 | 1024 |
|
1020 | 1025 |
int ff_thread_init(AVCodecContext *avctx) |