[vlc-commits] mux: mp4: skip elst for empty tracks

Francois Cartegnie git at videolan.org
Fri Jul 27 15:53:02 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jul 27 15:49:10 2018 +0200| [2c3874a4a932db3907b4893d3f7ad179ff1ece7c] | committer: Francois Cartegnie

mux: mp4: skip elst for empty tracks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c3874a4a932db3907b4893d3f7ad179ff1ece7c
---

 modules/mux/mp4/mp4.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/mux/mp4/mp4.c b/modules/mux/mp4/mp4.c
index 18cef6991c..d2bef82d10 100644
--- a/modules/mux/mp4/mp4.c
+++ b/modules/mux/mp4/mp4.c
@@ -528,6 +528,9 @@ static bool CreateCurrentEdit(mp4_stream_t *p_stream, vlc_tick_t i_mux_start_dts
     if(p_stream->mux.i_edits_count && b_fragmented)
         return true;
 
+    if(p_stream->mux.i_entry_count == 0)
+        return true;
+
     mp4mux_edit_t *p_realloc = realloc( p_stream->mux.p_edits, sizeof(mp4mux_edit_t) *
                                        (p_stream->mux.i_edits_count + 1) );
     if(unlikely(!p_realloc))



More information about the vlc-commits mailing list