diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-09-04 14:05:44 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-09-04 14:16:56 +0200 |
commit | 87b8c1081959e45ffdcbabb3d53ac9882ef2b5ce (patch) | |
tree | b7854343e00756dbc7d9b5cf741f7a3fc8d38045 /libavcodec | |
parent | 5d84ac5a405da889fcf5b32ba970b049452b9f8a (diff) | |
download | ffmpeg-87b8c1081959e45ffdcbabb3d53ac9882ef2b5ce.tar.gz |
avcodec/osq: fix type of nb_samples
Fixes crash caused by signed integer overflow.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/osq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/osq.c b/libavcodec/osq.c index 47587cd812..ac091ebc3d 100644 --- a/libavcodec/osq.c +++ b/libavcodec/osq.c @@ -52,7 +52,7 @@ typedef struct OSQContext { int decorrelate; int frame_samples; - int64_t nb_samples; + uint64_t nb_samples; int32_t *decode_buffer[2]; |