]> git.sesse.net Git - ffmpeg/blobdiff - ffplay.c
avcodec/vp8: Cosmetics, maintain alphabetical order in threading headers
[ffmpeg] / ffplay.c
index 80c30913e6c9afd7e78dd79414ca7a3fbf64657d..5b7fae5ea3c2046442bc0c5cf3574e4ab91d80d4 100644 (file)
--- a/ffplay.c
+++ b/ffplay.c
@@ -2482,6 +2482,8 @@ static int stream_component_open(VideoState *is, int stream_index)
     opts = filter_codec_opts(codec_opts, avctx->codec_id, ic, ic->streams[stream_index], codec);
     if (!av_dict_get(opts, "threads", NULL, 0))
         av_dict_set(&opts, "threads", "auto", 0);
+    if (avctx->lowres)
+        av_dict_set(&opts, "lowres", av_asprintf("%d", avctx->lowres), AV_DICT_DONT_STRDUP_VAL);
     if (avctx->codec_type == AVMEDIA_TYPE_VIDEO || avctx->codec_type == AVMEDIA_TYPE_AUDIO)
         av_dict_set(&opts, "refcounted_frames", "1", 0);
     if (avcodec_open2(avctx, codec, &opts) < 0)