summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-31 14:18:35 +0100
committerwm4 <wm4@nowhere>2017-10-31 14:18:35 +0100
commite0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2 (patch)
tree90e95ac93841fa1bfe41715cca5bbd6615831181 /video/decode/vd_lavc.c
parent078a3ed996f6bd4cfaf1e277347057cf1fcc46c5 (diff)
downloadmpv-e0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2.tar.bz2
mpv-e0f42bdc5d7208a7aebc4e0f75a4f4ba18ed49f2.tar.xz
vd_lavc: remove dead legacy code
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 824eb12a11..e3b5018d7c 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -313,18 +313,6 @@ static bool hwdec_codec_allowed(struct dec_video *vd, const char *codec)
return false;
}
-int hwdec_get_max_refs(struct lavc_ctx *ctx)
-{
- switch (ctx->avctx->codec_id) {
- case AV_CODEC_ID_H264:
- case AV_CODEC_ID_HEVC:
- return 16;
- case AV_CODEC_ID_VP9:
- return 8;
- }
- return 2;
-}
-
// This is intended to return the name of a decoder for a given wrapper API.
// Decoder wrappers are usually added to libavcodec with a specific suffix.
// For example the mmal h264 decoder is named h264_mmal.