[vlc-commits] [Git][videolan/vlc][master] mux: mp4: remove \0 from TTML filler payload

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sat Mar 2 17:35:18 UTC 2024



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
15902159 by François Cartegnie at 2024-03-02T17:18:20+00:00
mux: mp4: remove \0 from TTML filler payload

- - - - -


1 changed file:

- modules/mux/mp4/mp4.c


Changes:

=====================================
modules/mux/mp4/mp4.c
=====================================
@@ -846,7 +846,7 @@ static int MuxStream(sout_mux_t *p_mux, sout_input_t *p_input, mp4_stream_t *p_s
         else if(mp4mux_track_GetFmt(p_stream->tinfo)->i_codec == VLC_CODEC_TTML)
         {
             const char emptyttml[] = "<tt xmlns=\"" TT_NS "\"/>";
-            p_empty = block_Alloc(sizeof(emptyttml));
+            p_empty = block_Alloc(sizeof(emptyttml) - 1);
             if(p_empty)
                 memcpy(p_empty->p_buffer, emptyttml, p_empty->i_buffer);
         }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15902159dad4d9c301da96e67c4ed4037d53a851

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/15902159dad4d9c301da96e67c4ed4037d53a851
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list