[vlc-commits] rtp: set the marker bit correctly for Opus

Rémi Denis-Courmont git at videolan.org
Thu Sep 25 21:31:27 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep 25 21:27:21 2014 +0300| [ec288167c8c26ed545523818dbada162d624b9a5] | committer: Rémi Denis-Courmont

rtp: set the marker bit correctly for Opus

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

 modules/stream_out/rtpfmt.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/stream_out/rtpfmt.c b/modules/stream_out/rtpfmt.c
index 97fdf21..fb1e43f 100644
--- a/modules/stream_out/rtpfmt.c
+++ b/modules/stream_out/rtpfmt.c
@@ -851,11 +851,13 @@ static int rtp_packetize_ac3( sout_stream_id_sys_t *id, block_t *in )
 
 static int rtp_packetize_simple(sout_stream_id_sys_t *id, block_t *block)
 {
+    bool marker = (block->i_flags & BLOCK_FLAG_DISCONTINUITY) != 0;
+
     block = block_Realloc(block, 12, block->i_buffer);
     if (unlikely(block == NULL))
         return VLC_ENOMEM;
 
-    rtp_packetize_common(id, block, true, block->i_pts);
+    rtp_packetize_common(id, block, marker, block->i_pts);
     rtp_packetize_send(id, block);
     return VLC_SUCCESS;
 }



More information about the vlc-commits mailing list