Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gst-plugins-base
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sebastian Dröge
gst-plugins-base
Commits
da25c560
Commit
da25c560
authored
Jul 18, 2016
by
Tim-Philipp Müller
🐠
Committed by
Sebastian Dröge
Jul 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xvimagesink: only error out if the allocated memory is too small
https://bugzilla.gnome.org/show_bug.cgi?id=767712
parent
90eda865
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sys/xvimage/xvimageallocator.c
sys/xvimage/xvimageallocator.c
+1
-1
No files found.
sys/xvimage/xvimageallocator.c
View file @
da25c560
...
...
@@ -443,7 +443,7 @@ gst_xvimage_allocator_alloc (GstXvImageAllocator * allocator, gint im_format,
expected_size
=
padded_height
*
GST_ROUND_UP_4
(
padded_width
*
GST_VIDEO_FORMAT_INFO_PSTRIDE
(
info
->
finfo
,
0
));
}
if
(
expected_size
!=
0
&&
mem
->
xvimage
->
data_size
!=
expected_size
)
if
(
expected_size
!=
0
&&
mem
->
xvimage
->
data_size
<
expected_size
)
goto
unexpected_size
;
/* Be verbose about our XvImage stride */
...
...
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