aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2015-02-25 11:50:44 +0100
committerNicolas George <george@nsup.org>2015-02-26 19:19:56 +0100
commit508d6a23b4530d0f3d31451731e5fd1fce32525f (patch)
tree1f0e2bba943e0b3b7f0cacc394834495a22404dd /ffmpeg.c
parenta92193f247816a45c16c37a2f7db723a0359c24c (diff)
downloadffmpeg-508d6a23b4530d0f3d31451731e5fd1fce32525f.tar.gz
ffmpeg: allow to set the thread message queue size.
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index becd5dfc33..54ba0cbb28 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;