|
|
|
@@ -2628,8 +2628,6 @@ static int stream_component_open(VideoState *is, int stream_index) |
|
|
|
av_dict_set(&opts, "threads", "auto", 0); |
|
|
|
if (stream_lowres) |
|
|
|
av_dict_set_int(&opts, "lowres", stream_lowres, 0); |
|
|
|
if (avctx->codec_type == AVMEDIA_TYPE_VIDEO || avctx->codec_type == AVMEDIA_TYPE_AUDIO) |
|
|
|
av_dict_set(&opts, "refcounted_frames", "1", 0); |
|
|
|
if ((ret = avcodec_open2(avctx, codec, &opts)) < 0) { |
|
|
|
goto fail; |
|
|
|
} |
|
|
|
|