Skip to content

Commit

Permalink
Merge pull request opencv#15227 from tomoaki0705:fixFallThroughCarotene
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Aug 5, 2019
2 parents c506926 + d6ba235 commit d2c64b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 3rdparty/carotene/hal/tegra_hal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ inline int TEGRA_FILTERINIT(cvhalFilter2D **context, uchar *kernel_data, size_t
{
std::memcpy(ctx->kernel_data + kernel_width * j, kernel_data + kernel_step * j, kernel_width * sizeof(int16_t));
}
break;
default:
delete[] ctx->kernel_data;
delete ctx;
Expand Down Expand Up @@ -1243,6 +1244,7 @@ inline int TEGRA_SEPFILTERINIT(cvhalFilter2D **context, int src_type, int dst_ty
ctx->kernely_data[0]=((int16_t*)kernely_data)[0];
ctx->kernely_data[1]=((int16_t*)kernely_data)[1];
ctx->kernely_data[2]=((int16_t*)kernely_data)[2];
break;
default:
delete ctx;
return CV_HAL_ERROR_NOT_IMPLEMENTED;
Expand Down

0 comments on commit d2c64b5

Please sign in to comment.