summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2021-11-16 18:44:32 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2021-11-22 15:18:42 +0530
commit203b0e3561dea1ec459be226d805abe73e7535e5 (patch)
tree614069a11b1607478a96adbbe4b778f518c844c3 /libavformat/movenc.c
parent18f22bfb27e4919572b1b0a7f365a494364704f9 (diff)
avformat/mov: make STTS duration unsigned int
As per 8.6.1.2.2 of ISO/IEC 14496-12:2015(E), STTS sample offsets are to be always stored as uint32_t. So far, they have been signed ints which led to desync in files with very large offsets. The MOVStts struct was used to store CTTS offsets as well. These can be negative in version 1. So a new struct MOVCtts was created and all declarations for CTTS usage changed to MOVCtts.
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 37d4403f7a..233aee62d4 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2434,7 +2434,7 @@ static int mov_write_stsd_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext
static int mov_write_ctts_tag(AVFormatContext *s, AVIOContext *pb, MOVTrack *track)
{
MOVMuxContext *mov = s->priv_data;
- MOVStts *ctts_entries;
+ MOVCtts *ctts_entries;
uint32_t entries = 0;
uint32_t atom_size;
int i;