[vlc-commits] access: live555: set dts to ts_invalid for video
Francois Cartegnie
git at videolan.org
Sat May 20 13:55:48 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 19 19:41:08 2017 +0200| [fcb7347e8c09c95128520760886f89362f2db965] | committer: Francois Cartegnie
access: live555: set dts to ts_invalid for video
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fcb7347e8c09c95128520760886f89362f2db965
---
modules/access/live555.cpp | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/modules/access/live555.cpp b/modules/access/live555.cpp
index 3615c5b5a4..d203457d01 100644
--- a/modules/access/live555.cpp
+++ b/modules/access/live555.cpp
@@ -2054,7 +2054,19 @@ static void StreamRead( void *p_private, unsigned int i_size,
if( i_pts != tk->i_lastpts )
p_block->i_pts = VLC_TS_0 + i_pts;
/*FIXME: for h264 you should check that packetization-mode=1 in sdp-file */
- p_block->i_dts = ( tk->fmt.i_codec == VLC_CODEC_MPGV ) ? VLC_TS_INVALID : (VLC_TS_0 + i_pts);
+ switch( tk->fmt.i_codec )
+ {
+ case VLC_CODEC_MPGV:
+ case VLC_CODEC_H264:
+ case VLC_CODEC_HEVC:
+ case VLC_CODEC_VP8:
+ p_block->i_dts = VLC_TS_INVALID;
+ break;
+ default:
+ p_block->i_dts = VLC_TS_0 + i_pts;
+ break;
+ }
+
if( unlikely(tk->i_next_block_flags) )
{
p_block->i_flags |= tk->i_next_block_flags;
More information about the vlc-commits
mailing list