summaryrefslogtreecommitdiffstats
path: root/video/decode/vd_lavc.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-11 18:48:02 +0200
committerwm4 <wm4@nowhere>2015-10-11 18:48:02 +0200
commit9e7069fde2302aa23a717f17b66658067c1d499a (patch)
treeecff17fb0c652d0810d6e5a438d7cf63979a5933 /video/decode/vd_lavc.c
parent94b6a1054e6cd72b016d8a23fca56d76eaca629b (diff)
downloadmpv-9e7069fde2302aa23a717f17b66658067c1d499a.tar.bz2
mpv-9e7069fde2302aa23a717f17b66658067c1d499a.tar.xz
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.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r--video/decode/vd_lavc.c4
1 files changed, 1 insertions, 3 deletions
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];
}