1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

pthreads: reset active_thread_type when slice thread_init returrns early

This commit is contained in:
Janne Grunau 2011-12-21 13:07:54 +01:00
parent fede015468
commit f77f640b30

View File

@ -237,8 +237,10 @@ static int thread_init(AVCodecContext *avctx)
ThreadContext *c;
int thread_count = avctx->thread_count;
if (thread_count <= 1)
if (thread_count <= 1) {
avctx->active_thread_type = 0;
return 0;
}
c = av_mallocz(sizeof(ThreadContext));
if (!c)