summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-12-04 16:23:10 -0500
committerGravatar Lioncash2020-12-04 16:23:13 -0500
commit94af77aa7c26b65365fecc6230c2110c10ff16b5 (patch)
tree12e24c3bfd0103deb3c599b571fc879dce998a7b /src
parentMerge pull request #5064 from lioncash/node-shadow (diff)
downloadyuzu-94af77aa7c26b65365fecc6230c2110c10ff16b5.tar.gz
yuzu-94af77aa7c26b65365fecc6230c2110c10ff16b5.tar.xz
yuzu-94af77aa7c26b65365fecc6230c2110c10ff16b5.zip
codec: Remove deprecated usage of AVCodecContext::refcounted_frames
This was only necessary for use with the avcodec_decode_video2/avcoded_decode_audio4 APIs which are also deprecated. Given we use avcodec_send_packet/avcodec_receive_frame, this isn't necessary, this is even indicated directly within the FFmpeg API changes document here on 2017-09-26: https://github.com/FFmpeg/FFmpeg/blob/master/doc/APIchanges#L410 This prevents our code from breaking whenever we update to a newer version of FFmpeg in the future if they ever decide to fully remove this API member.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/command_classes/codecs/codec.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/video_core/command_classes/codecs/codec.cpp b/src/video_core/command_classes/codecs/codec.cpp
index 9a88f64e4..f547f5bd4 100644
--- a/src/video_core/command_classes/codecs/codec.cpp
+++ b/src/video_core/command_classes/codecs/codec.cpp
@@ -67,7 +67,6 @@ void Codec::Decode() {
67 } 67 }
68 68
69 av_codec_ctx = avcodec_alloc_context3(av_codec); 69 av_codec_ctx = avcodec_alloc_context3(av_codec);
70 av_codec_ctx->refcounted_frames = 1;
71 av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0); 70 av_opt_set(av_codec_ctx->priv_data, "tune", "zerolatency", 0);
72 71
73 // TODO(ameerj): libavcodec gpu hw acceleration 72 // TODO(ameerj): libavcodec gpu hw acceleration