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
0b384dd1
Commit
0b384dd1
authored
Nov 29, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VAAPI-X11: Make sure the base pointer for vaMapBuffer is NULL at start
Set p_base to NULL before passing it to vaMapBuffer.
parent
91f15717
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/codec/avcodec/vaapi_x11.c
modules/codec/avcodec/vaapi_x11.c
+2
-1
No files found.
modules/codec/avcodec/vaapi_x11.c
View file @
0b384dd1
...
...
@@ -958,7 +958,7 @@ static int CopyPictureToVAImage(vout_display_t *vd, picture_t *pic,
assert
(
image
->
image_id
!=
VA_INVALID_ID
);
assert
(
image
->
buf
!=
VA_INVALID_ID
);
void
*
p_base
;
void
*
p_base
=
NULL
;
status
=
vaMapBuffer
(
sys
->
conn
->
p_display
,
image
->
buf
,
&
p_base
);
if
(
status
!=
VA_STATUS_SUCCESS
)
{
...
...
@@ -971,6 +971,7 @@ static int CopyPictureToVAImage(vout_display_t *vd, picture_t *pic,
image
->
format
.
bits_per_pixel
,
pic
->
format
.
i_bits_per_pixel
);
goto
out_va_free
;
}
assert
(
p_base
);
/* should not happen */
for
(
unsigned
int
i_plane
=
0
;
i_plane
<
image
->
num_planes
;
i_plane
++
)
{
...
...
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