Frame-based multithreading framework using pthreads
[ffmpeg.git] / ffplay.c
index dbb6268..157fd7f 100644 (file)
--- 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();