summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-06-25 00:06:10 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-06-25 00:06:10 +0300
commit0cf5c3d2e4ac482d28cec4ee7ebf0f407d2921aa (patch)
treeba1f47a07f7213a2459d550b417f606f48dfad16
parentedb37c18b2125e6474020dca9996c62035e6e76a (diff)
Use FF_THREAD_SLICE only
-rw-r--r--examples/example_complex.c2
-rw-r--r--src/internal/kitdecoder.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/example_complex.c b/examples/example_complex.c
index bd337bb..ac136ac 100644
--- a/examples/example_complex.c
+++ b/examples/example_complex.c
@@ -110,7 +110,7 @@ int main(int argc, char *argv[]) {
}
// Allow Kit to use more threads
- Kit_SetHint(KIT_HINT_THREAD_COUNT, SDL_GetCPUCount() <= 2 ? SDL_GetCPUCount() : 2);
+ Kit_SetHint(KIT_HINT_THREAD_COUNT, SDL_GetCPUCount() <= 8 ? SDL_GetCPUCount() : 8);
Kit_SetHint(KIT_HINT_FONT_HINTING, KIT_FONT_HINTING_LIGHT);
// Open up the sourcefile.
diff --git a/src/internal/kitdecoder.c b/src/internal/kitdecoder.c
index 6484e0f..b57cbc4 100644
--- a/src/internal/kitdecoder.c
+++ b/src/internal/kitdecoder.c
@@ -54,7 +54,7 @@ Kit_Decoder* Kit_CreateDecoder(const Kit_Source *src, int stream_index,
// Set thread count
codec_ctx->thread_count = thread_count;
- codec_ctx->thread_type = FF_THREAD_FRAME;
+ codec_ctx->thread_type = FF_THREAD_SLICE;
// Open the stream
if(avcodec_open2(codec_ctx, codec, NULL) < 0) {