avfilter/vf_deshake_opencl: silence warning about usage of uninitialized value
This commit is contained in:
parent
1ab302da6e
commit
31350de997
@ -1128,7 +1128,7 @@ static int deshake_opencl_init(AVFilterContext *avctx)
|
|||||||
AVFilterLink *inlink = avctx->inputs[0];
|
AVFilterLink *inlink = avctx->inputs[0];
|
||||||
// Pointer to the host-side pattern buffer to be initialized and then copied
|
// Pointer to the host-side pattern buffer to be initialized and then copied
|
||||||
// to the GPU
|
// to the GPU
|
||||||
PointPair *pattern_host;
|
PointPair *pattern_host = NULL;
|
||||||
cl_int cle;
|
cl_int cle;
|
||||||
int err;
|
int err;
|
||||||
cl_ulong8 zeroed_ulong8;
|
cl_ulong8 zeroed_ulong8;
|
||||||
@ -1348,7 +1348,6 @@ static int deshake_opencl_init(AVFilterContext *avctx)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (!pattern_host)
|
|
||||||
av_freep(&pattern_host);
|
av_freep(&pattern_host);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user