Commit 3cbf2841 authored by stefano's avatar stefano

Make avcodec_thread_init() set the thread count, even in the case when

threads support is not enabled. This should avoid the need for
thread_count explicit setting in applications.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18670 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6940243e
......@@ -985,6 +985,7 @@ int av_get_bits_per_sample_format(enum SampleFormat sample_fmt) {
#if !HAVE_THREADS
int avcodec_thread_init(AVCodecContext *s, int thread_count){
s->thread_count = thread_count;
return -1;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment