Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
7fccfc99
Commit
7fccfc99
authored
Apr 23, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: use profile and level from AVCodecContext
parent
3bbd8b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/hw/vdpau/avcodec.c
modules/hw/vdpau/avcodec.c
+3
-4
No files found.
modules/hw/vdpau/avcodec.c
View file @
7fccfc99
...
...
@@ -258,12 +258,12 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, const es_format_t *fmt)
VdpStatus
err
;
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 2, 0))
VdpDecoderProfile
profile
;
int
level
=
fmt
->
i_
level
;
int
level
=
avctx
->
level
;
if
(
av_vdpau_get_profile
(
avctx
,
&
profile
))
{
msg_Err
(
va
,
"unsupported codec %d or profile %d"
,
avctx
->
codec_id
,
fmt
->
i_
profile
);
avctx
->
profile
);
return
VLC_EGENERIC
;
}
...
...
@@ -279,8 +279,7 @@ static int Open(vlc_va_t *va, AVCodecContext *avctx, const es_format_t *fmt)
level
=
VDP_DECODER_LEVEL_MPEG4_PART2_ASP_L5
;
break
;
case
AV_CODEC_ID_H264
:
if
((
fmt
->
i_profile
&
FF_PROFILE_H264_INTRA
)
&&
(
fmt
->
i_level
==
11
))
if
((
avctx
->
profile
&
FF_PROFILE_H264_INTRA
)
&&
level
==
11
)
level
=
VDP_DECODER_LEVEL_H264_1b
;
default:
break
;
...
...
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