From 6eaee2072fe55cb07a2710b428cdd851cb006747 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 27 Apr 2016 16:48:14 +0200 Subject: cfhd: Use sizeof(*var) instead of sizeof(type) --- libavcodec/cfhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3