Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
e90f7358
Commit
e90f7358
authored
Jul 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: fix inverted logic
parent
c5e461c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+6
-2
No files found.
modules/hw/vdpau/chroma.c
View file @
e90f7358
...
@@ -436,8 +436,12 @@ static picture_t *VideoPassthrough(filter_t *filter, picture_t *src)
...
@@ -436,8 +436,12 @@ static picture_t *VideoPassthrough(filter_t *filter, picture_t *src)
if
(
psys
->
vdp
!=
sys
->
vdp
)
if
(
psys
->
vdp
!=
sys
->
vdp
)
{
{
video_format_t
fmt
=
src
->
format
;
video_format_t
fmt
=
src
->
format
;
fmt
.
i_chroma
=
(
sys
->
chroma
==
VDP_CHROMA_TYPE_420
)
switch
(
sys
->
chroma
)
?
VLC_CODEC_UYVY
:
VLC_CODEC_NV12
;
{
case
VDP_CHROMA_TYPE_420
:
fmt
.
i_chroma
=
VLC_CODEC_NV12
;
break
;
case
VDP_CHROMA_TYPE_422
:
fmt
.
i_chroma
=
VLC_CODEC_UYVY
;
break
;
default:
assert
(
0
);
}
picture_t
*
pic
=
picture_NewFromFormat
(
&
fmt
);
picture_t
*
pic
=
picture_NewFromFormat
(
&
fmt
);
if
(
unlikely
(
pic
==
NULL
))
if
(
unlikely
(
pic
==
NULL
))
...
...
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