The thread_type API allows you to request only FF_THREAD_FRAME (instead of FRAME | SLICE), but it was being ignored. We don't implement both of them at the same time, so there isn't an effect on current codecs, except that you can request no kinds of threading now (a bit useless).
Unified · Split
| @@ -877,7 +877,7 @@ static void validate_thread_parameters(AVCodecContext *avctx) · 876 unmodified lines | |||
| 877 | avctx->active_thread_type = 0; | 877 | avctx->active_thread_type = 0; |
| 878 | } else if (frame_threading_supported && (avctx->thread_type & FF_THREAD_FRAME)) { | 878 | } else if (frame_threading_supported && (avctx->thread_type & FF_THREAD_FRAME)) { |
| 879 | avctx->active_thread_type = FF_THREAD_FRAME; | 879 | avctx->active_thread_type = FF_THREAD_FRAME; |
| 880 | } else { | 880 | } else if (avctx->thread_type & FF_THREAD_SLICE) { |
| 881 | avctx->active_thread_type = FF_THREAD_SLICE; | 881 | avctx->active_thread_type = FF_THREAD_SLICE; |
| 882 | } | 882 | } |
| 883 | } | 883 | } |