[vlc-commits] packetizer: h264: only use date_t for length computation
Francois Cartegnie
git at videolan.org
Wed Sep 25 21:02:43 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Sep 25 15:08:07 2019 +0200| [f23fab774f10b71530f630d8b6b318991f689d19] | committer: Francois Cartegnie
packetizer: h264: only use date_t for length computation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f23fab774f10b71530f630d8b6b318991f689d19
---
modules/packetizer/h264.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 8f340bae94..27f26820ba 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -984,17 +984,9 @@ static block_t *OutputPicture( decoder_t *p_dec )
if( p_pic->i_length == 0 )
{
- if( p_sps->vui.i_time_scale )
- {
- p_pic->i_length = vlc_tick_from_samples(i_num_clock_ts *
- p_sps->vui.i_num_units_in_tick, p_sps->vui.i_time_scale);
- }
- else
- {
- date_t next = p_sys->dts;
- date_Increment( &next, i_num_clock_ts );
- p_pic->i_length = date_Get( &next ) - date_Get( &p_sys->dts );
- }
+ date_t next = p_sys->dts;
+ date_Increment( &next, i_num_clock_ts );
+ p_pic->i_length = date_Get( &next ) - date_Get( &p_sys->dts );
}
#if 0
More information about the vlc-commits
mailing list