summaryrefslogtreecommitdiffstats
path: root/video/decode/lavc.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-22 18:04:59 +0100
committerwm4 <wm4@nowhere>2013-11-22 18:06:34 +0100
commitde22d2b1bafd2644b2ce6008f102427337796fd8 (patch)
treee0ceb06a7f0022e7f176c709dd69e86df5233e2b /video/decode/lavc.h
parent061927276751a3c7bc0b9c941e61d29b3ba29d7c (diff)
downloadmpv-de22d2b1bafd2644b2ce6008f102427337796fd8.tar.bz2
mpv-de22d2b1bafd2644b2ce6008f102427337796fd8.tar.xz
vf_vavpp: make it work with vo_opengl and software decoding
vo_opengl always loads the hwdec backend lazily, so hwdec_request_api() has to be called to possibly load it. This makes vf_vavpp work with software decoding. (Hardware decoding loads the backend before the filter is initialized, so this case is different.) Also, the VFCTRL_GET_HWDEC_INFO call doesn't need to be checked. If it fails, the info will be left blank.
Diffstat (limited to 'video/decode/lavc.h')
-rw-r--r--video/decode/lavc.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/decode/lavc.h b/video/decode/lavc.h
index af206bc82a..9e2533cbd5 100644
--- a/video/decode/lavc.h
+++ b/video/decode/lavc.h
@@ -86,8 +86,6 @@ bool hwdec_check_codec_support(const char *decoder,
const struct hwdec_profile_entry *table);
int hwdec_get_max_refs(struct lavc_ctx *ctx);
-void hwdec_request_api(struct mp_hwdec_info *info, const char *api_name);
-
// lavc_dr1.c
int mp_codec_get_buffer(AVCodecContext *s, AVFrame *frame);
void mp_codec_release_buffer(AVCodecContext *s, AVFrame *frame);