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
aba52bc1
Commit
aba52bc1
authored
Jul 08, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: add some sanity checking assertion
parent
761ea8aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/hw/vdpau/picture.c
modules/hw/vdpau/picture.c
+8
-0
No files found.
modules/hw/vdpau/picture.c
View file @
aba52bc1
...
...
@@ -76,6 +76,9 @@ VdpStatus vlc_vdp_video_attach(vdp_t *vdp, VdpVideoSurface surface,
return
VDP_STATUS_RESOURCES
;
}
assert
(
pic
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_420
||
pic
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_422
);
assert
(
!
picture_IsReferenced
(
pic
));
assert
(
pic
->
context
==
NULL
);
pic
->
context
=
field
;
...
...
@@ -99,6 +102,11 @@ VdpStatus vlc_vdp_video_copy(picture_t *restrict dst, picture_t *restrict src)
if
(
unlikely
(
fnew
==
NULL
))
return
VDP_STATUS_RESOURCES
;
assert
(
src
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_420
||
src
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_422
);
assert
(
dst
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_420
||
dst
->
format
.
i_chroma
==
VLC_CODEC_VDPAU_VIDEO_422
);
assert
(
!
picture_IsReferenced
(
dst
));
assert
(
dst
->
context
==
NULL
);
dst
->
context
=
fnew
;
...
...
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