ffmpeg: allow to set the thread message queue size.

This commit is contained in:
Nicolas George
2015-02-25 11:50:44 +01:00
parent a92193f247
commit 508d6a23b4
4 changed files with 15 additions and 1 deletions

View File

@@ -3420,7 +3420,7 @@ static int init_input_threads(void)
strcmp(f->ctx->iformat->name, "lavfi"))
f->non_blocking = 1;
ret = av_thread_message_queue_alloc(&f->in_thread_queue,
8, sizeof(AVPacket));
f->thread_queue_size, sizeof(AVPacket));
if (ret < 0)
return ret;