From 87b8c1081959e45ffdcbabb3d53ac9882ef2b5ce Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 4 Sep 2023 14:05:44 +0200 Subject: [PATCH] avcodec/osq: fix type of nb_samples Fixes crash caused by signed integer overflow. --- 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];