[vlc-commits] mux: mp4: don't create filler for ephemer spu blocks
Francois Cartegnie
git at videolan.org
Thu Jan 25 11:15:27 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 24 17:33:11 2018 +0100| [5dcf4981eb8f0fc26b453171bdef2034ad8203b8] | committer: Francois Cartegnie
mux: mp4: don't create filler for ephemer spu blocks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5dcf4981eb8f0fc26b453171bdef2034ad8203b8
---
modules/mux/mp4/mp4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mux/mp4/mp4.c b/modules/mux/mp4/mp4.c
index 73cfb13a31..2eadd43c64 100644
--- a/modules/mux/mp4/mp4.c
+++ b/modules/mux/mp4/mp4.c
@@ -725,7 +725,7 @@ static int MuxStream(sout_mux_t *p_mux, sout_input_t *p_input, mp4_stream_t *p_s
sout_AccessOutWrite(p_mux->p_access, p_data);
/* Add SPU clearing tag (duration tb fixed on next SPU or stream end )*/
- if (p_stream->mux.fmt.i_cat == SPU_ES )
+ if ( p_stream->mux.fmt.i_cat == SPU_ES && e->i_length > 0 )
{
block_t *p_empty = NULL;
if(p_stream->mux.fmt.i_codec == VLC_CODEC_SUBT||
More information about the vlc-commits
mailing list