mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
w32threads: with only 1 thread there cant be a active threading mode.
Fixes ticket284 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
035c13e307
commit
0aed4f81fe
@ -135,11 +135,11 @@ int ff_thread_init(AVCodecContext *s){
|
||||
return 0;
|
||||
}
|
||||
|
||||
s->active_thread_type= FF_THREAD_SLICE;
|
||||
|
||||
if (s->thread_count <= 1)
|
||||
return 0;
|
||||
|
||||
s->active_thread_type= FF_THREAD_SLICE;
|
||||
|
||||
assert(!s->thread_opaque);
|
||||
c= av_mallocz(sizeof(ThreadContext)*s->thread_count);
|
||||
s->thread_opaque= c;
|
||||
|
Loading…
Reference in New Issue
Block a user