Skip to content

Commit

Permalink
mux: mp4: remove \0 from TTML filler payload
Browse files Browse the repository at this point in the history
  • Loading branch information
fcartegnie authored and jbkempf committed Mar 2, 2024
1 parent 183b846 commit 1590215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mux/mp4/mp4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1590215

Please sign in to comment.