aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-07-11 21:53:58 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-21 17:02:11 +0200
commitbe30913538d4be9a50672ceb683f8745d8aa75a9 (patch)
tree99804758ae8bea016593e967477ef5498ff5554c
parent41745e550a0274571bd9fbfb12b36ff1743d4e9c (diff)
downloadffmpeg-be30913538d4be9a50672ceb683f8745d8aa75a9.tar.gz
avformat/ty: rec_size seems to only need 32bit
May help CID1604560 Overflowed integer argument Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/ty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ty.c b/libavformat/ty.c
index ac3b9071fc..f524b74bad 100644
--- a/libavformat/ty.c
+++ b/libavformat/ty.c
@@ -49,7 +49,7 @@ static const uint8_t ty_AC3AudioPacket[] = { 0x00, 0x00, 0x01, 0xbd };
#define CHUNK_PEEK_COUNT 3 /* number of chunks to probe */
typedef struct TyRecHdr {
- int64_t rec_size;
+ int32_t rec_size;
uint8_t ex[2];
uint8_t rec_type;
uint8_t subrec_type;