mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/movenc: assert that get_cluster_duration() value is valid
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1b872de8f4
commit
20fa3fb93d
@ -614,7 +614,12 @@ static int get_cluster_duration(MOVTrack *track, int cluster_idx)
|
||||
else
|
||||
next_dts = track->cluster[cluster_idx + 1].dts;
|
||||
|
||||
return next_dts - track->cluster[cluster_idx].dts;
|
||||
next_dts -= track->cluster[cluster_idx].dts;
|
||||
|
||||
av_assert0(next_dts >= 0);
|
||||
av_assert0(next_dts <= INT_MAX);
|
||||
|
||||
return next_dts;
|
||||
}
|
||||
|
||||
static int get_samples_per_packet(MOVTrack *track)
|
||||
|
Loading…
Reference in New Issue
Block a user