diff options
author | Diego Biurrun <diego@biurrun.de> | 2016-04-27 16:48:14 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-25 13:57:00 +0200 |
commit | 6eaee2072fe55cb07a2710b428cdd851cb006747 (patch) | |
tree | 6c5260fe853f32ef93e885a02493ec14af77c715 | |
parent | c4ca73480c3e2646e25df1fd5766664e8af2d629 (diff) |
cfhd: Use sizeof(*var) instead of sizeof(type)
-rw-r--r-- | libavcodec/cfhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 85f5ef42d2..a1c8ef1dd8 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -460,7 +460,7 @@ static int read_lowpass_coeffs(AVCodecContext *avctx, CFHDContext *s, if (lowpass_height > lowpass_a_height || lowpass_width > lowpass_a_width || - lowpass_a_width * lowpass_a_height * sizeof(int16_t) > bytestream2_get_bytes_left(gb)) { + lowpass_a_width * lowpass_a_height * sizeof(*coeff_data) > bytestream2_get_bytes_left(gb)) { av_log(avctx, AV_LOG_ERROR, "Too many lowpass coefficients\n"); return AVERROR_INVALIDDATA; } |