aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2017-11-17 14:53:25 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-12-30 21:11:32 +0100
commit362967fec6a4c4772e56b50efba49dab06f49de6 (patch)
treede6f7711ccce576307dba0369eae733fc6937afc /libavformat/mov.c
parenta0eccf673cda83697e8e42d13e10d31a60a45346 (diff)
downloadffmpeg-362967fec6a4c4772e56b50efba49dab06f49de6.tar.gz
Fix leak of frame_duration_buffer in mov_fix_index().
Should be unconditionally freed at the end of mov_fix_index() in case it hasn't been used during the fix up. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Reviewed-by: Sasi Inguva <isasi-at-google.com@ffmpeg.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d073be2291e40129d107ca4573097d6d6d2dbf68) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 2f6965eabb..f2eb22eb3d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -3296,6 +3296,7 @@ static void mov_fix_index(MOVContext *mov, AVStream *st)
// Free the old index and the old CTTS structures
av_free(e_old);
av_free(ctts_data_old);
+ av_freep(&frame_duration_buffer);
// Null terminate the index ranges array
current_index_range++;