diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index 0ef4588a04..9855b3587b 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -1046,12 +1046,12 @@ int ff_thread_init(AVCodecContext *avctx) w32thread_init(); #endif - validate_thread_parameters(avctx); + validate_thread_parameters(avctx); - if (avctx->active_thread_type&FF_THREAD_SLICE) - return thread_init(avctx); - else if (avctx->active_thread_type&FF_THREAD_FRAME) - return frame_thread_init(avctx); + if (avctx->active_thread_type&FF_THREAD_SLICE) + return thread_init(avctx); + else if (avctx->active_thread_type&FF_THREAD_FRAME) + return frame_thread_init(avctx); return 0; }