History

pthread: validate_thread_parameters() ignored slice-threading being intentionally off

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).

Alexander Strange committed 15 years ago

Commit cf39b461 parent f82163c1 file · +1 −1Browse files

Unified · Split

libavcodec/pthread.c+1−1
@@ -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}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t