Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9e06327e
Commit
9e06327e
authored
Dec 17, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcbgrab: Move NULL check before pointer dereference
Bug-Id: CID 1254668
parent
5ac06633
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
xcbgrab.c
libavdevice/xcbgrab.c
+5
-1
No files found.
libavdevice/xcbgrab.c
View file @
9e06327e
...
...
@@ -99,12 +99,16 @@ static int xcbgrab_reposition(AVFormatContext *s,
xcb_get_geometry_reply_t
*
geo
)
{
XCBGrabContext
*
c
=
s
->
priv_data
;
int
x
=
c
->
x
,
y
=
c
->
y
,
p_x
=
p
->
win_x
,
p_y
=
p
->
win_y
;
int
x
=
c
->
x
,
y
=
c
->
y
;
int
w
=
c
->
width
,
h
=
c
->
height
,
f
=
c
->
follow_mouse
;
int
p_x
,
p_y
;
if
(
!
p
||
!
geo
)
return
AVERROR
(
EIO
);
p_x
=
p
->
win_x
;
p_y
=
p
->
win_y
;
if
(
f
==
FOLLOW_CENTER
)
{
x
=
p_x
-
w
/
2
;
y
=
p_y
-
h
/
2
;
...
...
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