[vlc-commits] packetizer: h264: don't use unknown dpb removal delay

Francois Cartegnie git at videolan.org
Thu Mar 16 11:37:47 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 16 11:36:55 2017 +0100| [052fcc7a401073631092585f5cf0bcb8f6c41e98] | committer: Francois Cartegnie

packetizer: h264: don't use unknown dpb removal delay

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

 modules/packetizer/h264.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index e878bdc..dfee685 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -848,7 +848,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
         p_pic->i_dts = date_Get( &p_sys->dts );
 
     /* PTS Fixup, interlaced fields (multiple AU/block) */
-    if( p_pic->i_pts <= VLC_TS_INVALID && p_sps->vui.i_time_scale )
+    if( p_pic->i_pts <= VLC_TS_INVALID && p_sps->vui.i_time_scale &&
+        p_sps->vui.b_valid && p_sps->vui.b_hrd_parameters_present_flag )
     {
         mtime_t i_pts_delay = CLOCK_FREQ * p_sys->i_dpb_output_delay *
                               p_sps->vui.i_num_units_in_tick / p_sps->vui.i_time_scale;



More information about the vlc-commits mailing list