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
1128 AVFilterLink *inlink = avctx->inputs[0];1128 AVFilterLink *inlink = avctx->inputs[0];
1129 // Pointer to the host-side pattern buffer to be initialized and then copied1129 // Pointer to the host-side pattern buffer to be initialized and then copied
1130 // to the GPU1130 // to the GPU
1131 PointPair *pattern_host;1131 PointPair *pattern_host = NULL;
1132 cl_int cle;1132 cl_int cle;
1133 int err;1133 int err;
1134 cl_ulong8 zeroed_ulong8;1134 cl_ulong8 zeroed_ulong8;
@@ -1348,8 +1348,7 @@ static int deshake_opencl_init(AVFilterContext *avctx) · 213 unmodified lines
1348 return 0;1348 return 0;
1349 1349
1350fail:1350fail:
1351 if (!pattern_host)1351 av_freep(&pattern_host);
1352 av_freep(&pattern_host);
1353 return err;1352 return err;
1354}1353}
1355 1354

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