[vlc-commits] [Git][videolan/vlc][master] directx_va: only call profile readers if we don't have one
Steve Lhomme
gitlab at videolan.org
Thu Jun 24 09:39:54 UTC 2021
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a69b492a by Steve Lhomme at 2021-06-24T09:10:10+00:00
directx_va: only call profile readers if we don't have one
That's how MediaCodec does it. These readers can be wrong so rely on lavc
and container values instead.
Fixes #25850
- - - - -
1 changed file:
- modules/codec/avcodec/directx_va.c
Changes:
=====================================
modules/codec/avcodec/directx_va.c
=====================================
@@ -348,13 +348,13 @@ static bool profile_supported(const directx_va_mode_t *mode, const es_format_t *
return true;
int profile = fmt->i_profile >= 0 ? fmt->i_profile : avctx->profile;
- if (mode->codec == AV_CODEC_ID_H264)
+ if (mode->codec == AV_CODEC_ID_H264 && profile == -1)
{
uint8_t h264_profile;
if ( h264_get_profile_level(fmt, &h264_profile, NULL, NULL) )
profile = h264_profile;
}
- if (mode->codec == AV_CODEC_ID_HEVC)
+ if (mode->codec == AV_CODEC_ID_HEVC && profile == -1)
{
uint8_t hevc_profile;
if (hevc_get_profile_level(fmt, &hevc_profile, NULL, NULL) )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a69b492a6272c84b9c2efa912ad0b1dc612a2b83
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a69b492a6272c84b9c2efa912ad0b1dc612a2b83
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list