[vlc-commits] packetizer: mpegvideo: fix divbyzero (cid #1405213)
Francois Cartegnie
git at videolan.org
Tue Apr 18 10:41:22 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 18 10:40:51 2017 +0200| [e4b622bf7b423440b2feb5d58741b7022caa48ac] | committer: Francois Cartegnie
packetizer: mpegvideo: fix divbyzero (cid #1405213)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4b622bf7b423440b2feb5d58741b7022caa48ac
---
modules/packetizer/mpegvideo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index 67dd1bbee8..9a82310c4e 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -680,7 +680,7 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
msg_Dbg( p_dec, "size %dx%d/%dx%d fps=%.3f",
p_dec->fmt_out.video.i_visible_width, p_dec->fmt_out.video.i_visible_height,
p_dec->fmt_out.video.i_width, p_dec->fmt_out.video.i_height,
- p_sys->i_frame_rate / (float)p_sys->i_frame_rate_base );
+ p_sys->i_frame_rate / (float)(p_sys->i_frame_rate_base ? p_sys->i_frame_rate_base : 1) );
p_sys->b_inited = 1;
}
}
More information about the vlc-commits
mailing list