You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit '9e06327ecb8f73c7904d10af7ad339c57cdaa788'
* commit '9e06327ecb8f73c7904d10af7ad339c57cdaa788':
xcbgrab: Move NULL check before pointer dereference
Conflicts:
libavdevice/xcbgrab.c
See: e86df0206f
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -106,14 +106,13 @@ static int xcbgrab_reposition(AVFormatContext *s,
|
|||||||
xcb_get_geometry_reply_t *geo)
|
xcb_get_geometry_reply_t *geo)
|
||||||
{
|
{
|
||||||
XCBGrabContext *c = s->priv_data;
|
XCBGrabContext *c = s->priv_data;
|
||||||
int x, y, p_x, p_y;
|
int x = c->x, y = c->y;
|
||||||
int w = c->width, h = c->height, f = c->follow_mouse;
|
int w = c->width, h = c->height, f = c->follow_mouse;
|
||||||
|
int p_x, p_y;
|
||||||
|
|
||||||
if (!p || !geo)
|
if (!p || !geo)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
|
||||||
x = c->x;
|
|
||||||
y = c->y;
|
|
||||||
p_x = p->win_x;
|
p_x = p->win_x;
|
||||||
p_y = p->win_y;
|
p_y = p->win_y;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user