summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorAlexander Strange <astrange@ithinksw.com>2011-02-07 21:15:44 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-09 09:17:28 -0500
commit37b00b47cbeecd66bb34c5c7c534d016d6e8da24 (patch)
treedce47f2343f8a0f0f73e09a787aa92f255f9aa0f /ffplay.c
parentc2bd7578af069206831a9c25fa68c9bbd5004619 (diff)
downloadffmpeg-37b00b47cbeecd66bb34c5c7c534d016d6e8da24.tar.gz
Frame-based multithreading framework using pthreads
See doc/multithreading.txt for details on use in codecs. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffplay.c b/ffplay.c
index dbb6268df1..157fd7f255 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1694,6 +1694,7 @@ static int input_init(AVFilterContext *ctx, const char *args, void *opaque)
codec->get_buffer = input_get_buffer;
codec->release_buffer = input_release_buffer;
codec->reget_buffer = input_reget_buffer;
+ codec->thread_safe_callbacks = 1;
}
priv->frame = avcodec_alloc_frame();