diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-24 11:51:35 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-28 17:14:21 +0100 |
commit | cb5a223a7e7e0839c449a0304a5ef17611febf67 (patch) | |
tree | e551525b4460010d50368bd5e98fc7e099573f8f /fftools/ffplay.c | |
parent | 13101f916fa9321faed36d992c9cd260c073d3ad (diff) |
fftools/ffmpeg, ffplay: Don't set refcounted_frames
It only affects the old and deprecated avcodec_decode_(video2|audio4)
API which is no longer used here.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'fftools/ffplay.c')
-rw-r--r-- | fftools/ffplay.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fftools/ffplay.c b/fftools/ffplay.c index b9a30cdb11..ac0885b84e 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -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; } |