diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-04-18 14:51:07 +0300 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2019-04-19 15:01:04 +0300 |
commit | 53064e134ca67d3ab2a2228df1cac050219afaab (patch) | |
tree | c392a7cdc50577eb00357d4cbcf59c4171bbe972 /libavcodec/alac.c | |
parent | 78c8a765369d3974b50c08355fd872637653cd08 (diff) |
lavc/alac: Make a variable unsigned.
Fixes a bogus compiler warning (max_samples_per_frame is checked):
libavcodec/alac.c: In function ‘allocate_buffers’:
./libavutil/internal.h:142:9: warning: argument 1 value ‘18446744073709551552’ exceeds maximum object size 9223372036854775807
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index d6b87db734..2f44340661 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -486,7 +486,7 @@ static av_cold int alac_decode_close(AVCodecContext *avctx) static int allocate_buffers(ALACContext *alac) { int ch; - int buf_size = alac->max_samples_per_frame * sizeof(int32_t); + unsigned buf_size = alac->max_samples_per_frame * sizeof(int32_t); for (ch = 0; ch < 2; ch++) { alac->predict_error_buffer[ch] = NULL; |