Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -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 copied | 1129 | // Pointer to the host-side pattern buffer to be initialized and then copied |
| 1130 | // to the GPU | 1130 | // 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 | ||
| 1350 | fail: | 1350 | fail: |
| 1351 | if (!pattern_host) | 1351 | av_freep(&pattern_host); |
| 1352 | av_freep(&pattern_host); | ||
| 1353 | return err; | 1352 | return err; |
| 1354 | } | 1353 | } |
| 1355 | 1354 | ||