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>
(cherry picked from commit be30913538)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-07-11 21:53:58 +02:00
parent 9ed173954a
commit 13d2d2371c
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -47,7 +47,7 @@ static const uint8_t ty_AC3AudioPacket[] = { 0x00, 0x00, 0x01, 0xbd };
#define CHUNK_PEEK_COUNT 3 /* number of chunks to probe */ #define CHUNK_PEEK_COUNT 3 /* number of chunks to probe */
typedef struct TyRecHdr { typedef struct TyRecHdr {
int64_t rec_size; int32_t rec_size;
uint8_t ex[2]; uint8_t ex[2];
uint8_t rec_type; uint8_t rec_type;
uint8_t subrec_type; uint8_t subrec_type;