|
|
|
@ -2152,6 +2152,7 @@ fail: |
|
|
|
|
clReleaseMemObject(mapping->frame.planes[p]); |
|
|
|
|
} |
|
|
|
|
av_free(mapping); |
|
|
|
|
memset(dst->data, 0, sizeof(dst->data)); |
|
|
|
|
return err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2329,6 +2330,7 @@ fail: |
|
|
|
|
if (desc->planes[p]) |
|
|
|
|
clReleaseMemObject(desc->planes[p]); |
|
|
|
|
av_freep(&desc); |
|
|
|
|
memset(dst->data, 0, sizeof(dst->data)); |
|
|
|
|
return err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2419,6 +2421,7 @@ fail: |
|
|
|
|
0, NULL, &event); |
|
|
|
|
if (cle == CL_SUCCESS) |
|
|
|
|
opencl_wait_events(dst_fc, &event, 1); |
|
|
|
|
memset(dst->data, 0, sizeof(dst->data)); |
|
|
|
|
return err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2574,6 +2577,7 @@ fail: |
|
|
|
|
0, NULL, &event); |
|
|
|
|
if (cle == CL_SUCCESS) |
|
|
|
|
opencl_wait_events(dst_fc, &event, 1); |
|
|
|
|
memset(dst->data, 0, sizeof(dst->data)); |
|
|
|
|
return err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2805,6 +2809,7 @@ fail: |
|
|
|
|
clReleaseMemObject(mapping->object_buffers[i]); |
|
|
|
|
} |
|
|
|
|
av_free(mapping); |
|
|
|
|
memset(dst->data, 0, sizeof(dst->data)); |
|
|
|
|
return err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|