X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=babdcb9954f5573487185e03590d9c8050d45176;hb=79f80f5c1f6e292af5d6413600e7129d36cb9be6;hp=4fd8b36a151cd8f823e816c8f8b40735d8e62677;hpb=e191f1f4141aec6b40d12af4835844deca134a1e;p=ffmpeg diff --git a/ffplay.c b/ffplay.c index 4fd8b36a151..babdcb9954f 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2266,6 +2266,8 @@ static int stream_component_open(VideoState *is, int stream_index) } } + if (!av_dict_get(opts, "threads", NULL, 0)) + av_dict_set(&opts, "threads", "auto", 0); if (!codec || avcodec_open2(avctx, codec, &opts) < 0) return -1;