Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-08-01 09:23:02 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-01 09:23:02 +0300
commit754cdb51b94f81cf578af00fc7699b4521991e7d (patch)
treef082a2037271239a2f6865e0496943d7b70ebb19 /decoder
parent374a2d49945429494f4d56dd7115efc6b96fc115 (diff)
dxva2dec: only check the profile if its actually set
Fixes DXVA2-CB decoding of MPEG2 video streams.
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp2
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++)
{