diff options
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 12 |
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. |