diff options
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index e6a70bffc0..e6e2313c53 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2286,8 +2286,10 @@ static int mov_preroll_write_stbl_atoms(AVIOContext *pb, MOVTrack *track) } entries++; - if (!group) + if (!group) { + av_free(sgpd_entries); return 0; + } /* Write sgpd tag */ avio_wb32(pb, 24 + (group * 2)); /* size */ |