Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
1ab0330d
Commit
1ab0330d
authored
Mar 01, 2018
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
directx_va: also check avctx profile
Better to get all chances to get a profile.
parent
77b641f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/codec/avcodec/directx_va.c
modules/codec/avcodec/directx_va.c
+4
-3
No files found.
modules/codec/avcodec/directx_va.c
View file @
1ab0330d
...
...
@@ -350,12 +350,13 @@ error:
return
VLC_EGENERIC
;
}
static
bool
profile_supported
(
const
directx_va_mode_t
*
mode
,
const
es_format_t
*
fmt
)
static
bool
profile_supported
(
const
directx_va_mode_t
*
mode
,
const
es_format_t
*
fmt
,
const
AVCodecContext
*
avctx
)
{
bool
is_supported
=
mode
->
p_profiles
==
NULL
||
!
mode
->
p_profiles
[
0
];
if
(
!
is_supported
)
{
int
profile
=
fmt
->
i_profile
;
int
profile
=
fmt
->
i_profile
>=
0
?
fmt
->
i_profile
:
avctx
->
profile
;
if
(
mode
->
codec
==
AV_CODEC_ID_H264
)
{
uint8_t
h264_profile
;
...
...
@@ -420,7 +421,7 @@ static int FindVideoServiceConversion(vlc_va_t *va, directx_sys_t *dx_sys,
}
if
(
is_supported
)
{
is_supported
=
profile_supported
(
mode
,
fmt
);
is_supported
=
profile_supported
(
mode
,
fmt
,
avctx
);
if
(
!
is_supported
)
msg_Warn
(
va
,
"Unsupported profile %d for %s "
,
fmt
->
i_profile
,
directx_va_GetDecoderName
(
mode
->
guid
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment