History

avfilter/vf_deshake_opencl: silence warning about usage of uninitialized value

Paul B Mahol committed 6 years ago

Commit 31350de1 parent 1ab302d1 file · +2 −3Browse files

Unified · Split

libavfilter/vf_deshake_opencl.c+2−3
@@ -1128,7 +1128,7 @@ static int deshake_opencl_init(AVFilterContext *avctx) · 1127 unmodified lines
11281128 AVFilterLink *inlink = avctx->inputs[0];
11291129 // Pointer to the host-side pattern buffer to be initialized and then copied
11301130 // to the GPU
1131− PointPair *pattern_host;
1131+ PointPair *pattern_host = NULL;
11321132 cl_int cle;
11331133 int err;
11341134 cl_ulong8 zeroed_ulong8;
@@ -1348,8 +1348,7 @@ static int deshake_opencl_init(AVFilterContext *avctx) · 213 unmodified lines
13481348 return 0;
13491349
13501350 fail:
1351− if (!pattern_host)
1352− av_freep(&pattern_host);
1351+ av_freep(&pattern_host);
13531352 return err;
13541353 }
13551354

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t