From 9e7069fde2302aa23a717f17b66658067c1d499a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 11 Oct 2015 18:48:02 +0200 Subject: vd_lavc: refuse to initialize vaapi with unknown profiles Bad idea, although I'm not sure how harmful it actually was. Although this is common code, only the vaapi hwaccel still uses it. --- video/decode/vd_lavc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/decode') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 9cc73d033a..d501f75fdd 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -190,9 +190,7 @@ const struct hwdec_profile_entry *hwdec_find_profile( } for (int n = 0; table[n].av_codec; n++) { if (table[n].av_codec == codec) { - if (table[n].ff_profile == FF_PROFILE_UNKNOWN || - profile == FF_PROFILE_UNKNOWN || - table[n].ff_profile == profile || + if (table[n].ff_profile == profile || !lavc_param->check_hw_profile) return &table[n]; } -- cgit v1.2.3