[vlc-commits] packetizer: dirac: check rate

Francois Cartegnie git at videolan.org
Wed Jul 19 11:31:15 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 19 11:29:45 2017 +0200| [bc0616fe883dc6d95fe1f040eea65d29a4b58144] | committer: Francois Cartegnie

packetizer: dirac: check rate

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

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

diff --git a/modules/packetizer/dirac.c b/modules/packetizer/dirac.c
index 359a046739..6e8d7c50ba 100644
--- a/modules/packetizer/dirac.c
+++ b/modules/packetizer/dirac.c
@@ -913,7 +913,8 @@ static int dirac_InspectDataUnit( decoder_t *p_dec, block_t **pp_block, block_t
         {
             u_pics_per_sec *= 2;
         }
-        date_Change( &p_sys->dts, u_pics_per_sec, p_sys->seq_hdr.u_fps_den );
+        if( u_pics_per_sec &&  p_sys->seq_hdr.u_fps_den )
+            date_Change( &p_sys->dts, u_pics_per_sec, p_sys->seq_hdr.u_fps_den );
 
         /* TODO: set p_sys->reorder_buf.u_size_max */
         p_sys->i_pts_offset = p_sys->reorder_buf.u_size_max



More information about the vlc-commits mailing list