[FFmpeg-cvslog] avcodec/osq: fix type of nb_samples

Paul B Mahol git at videolan.org
Mon Sep 4 15:11:06 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep  4 14:05:44 2023 +0200| [87b8c1081959e45ffdcbabb3d53ac9882ef2b5ce] | committer: Paul B Mahol

avcodec/osq: fix type of nb_samples

Fixes crash caused by signed integer overflow.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87b8c1081959e45ffdcbabb3d53ac9882ef2b5ce
---

 libavcodec/osq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];
 



More information about the ffmpeg-cvslog mailing list