You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/movenc: Fix stts_entries allocation check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1833,7 +1833,7 @@ static int mov_write_stts_tag(AVIOContext *pb, MOVTrack *track)
|
|||||||
stts_entries = track->entry ?
|
stts_entries = track->entry ?
|
||||||
av_malloc_array(track->entry, sizeof(*stts_entries)) : /* worst case */
|
av_malloc_array(track->entry, sizeof(*stts_entries)) : /* worst case */
|
||||||
NULL;
|
NULL;
|
||||||
if (!stts_entries)
|
if (track->entry && !stts_entries)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
for (i = 0; i < track->entry; i++) {
|
for (i = 0; i < track->entry; i++) {
|
||||||
int duration = get_cluster_duration(track, i);
|
int duration = get_cluster_duration(track, i);
|
||||||
|
Reference in New Issue
Block a user