diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-01 09:23:02 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-08-01 09:23:02 +0300 |
commit | 754cdb51b94f81cf578af00fc7699b4521991e7d (patch) | |
tree | f082a2037271239a2f6865e0496943d7b70ebb19 /decoder/LAVVideo | |
parent | 374a2d49945429494f4d56dd7115efc6b96fc115 (diff) |
dxva2dec: only check the profile if its actually set
Fixes DXVA2-CB decoding of MPEG2 video streams.
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/decoders/dxva2dec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp index 4f47450d..97e1c975 100644 --- a/decoder/LAVVideo/decoders/dxva2dec.cpp +++ b/decoder/LAVVideo/decoders/dxva2dec.cpp @@ -194,7 +194,7 @@ static int check_dxva_mode_compatibility(const dxva2_mode_t *mode, int codec, in if (mode->codec != codec) return 0; - if (mode->profiles) + if (mode->profiles && profile != FF_PROFILE_UNKNOWN) { for (int i = 0; mode->profiles[i] != FF_PROFILE_UNKNOWN; i++) { |