summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-08 21:08:58 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-12-11 15:56:10 +0100
commitcd693c9ec8a83eca7c5e79c454a451c7936749c5 (patch)
tree7fff8c1885daea05db02a6045fc6e87f0482073a
parentf176669a374c16d45bb0b8464de3b8a73f791e2d (diff)
avcodec/movtextdec: Switch to smaller type
The base size of a box refers to the size the box has in a file, not in memory; so size_t is not their natural type. Therefore use a plain unsigned which is smaller on 64bit systems and still big enough to represent any conceivable base size. Reviewed-by: Philip Langdale <philipl@overt.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/movtextdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
index b0c54bf1d0..8dd571d64c 100644
--- a/libavcodec/movtextdec.c
+++ b/libavcodec/movtextdec.c
@@ -111,7 +111,7 @@ typedef struct {
typedef struct {
uint32_t type;
- size_t base_size;
+ unsigned base_size;
int (*decode)(const uint8_t *tsmb, MovTextContext *m, const AVPacket *avpkt);
} Box;