summaryrefslogtreecommitdiffstats
path: root/video/decode
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode')
-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];
}