[vlc-commits] packetizer: h264: fix divbyzero
Francois Cartegnie
git at videolan.org
Mon Apr 17 16:08:15 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 17 16:05:14 2017 +0200| [944ccbae6bdc6c6f40bd178c169bec7b3c020e34] | committer: Francois Cartegnie
packetizer: h264: fix divbyzero
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=944ccbae6bdc6c6f40bd178c169bec7b3c020e34
---
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 41ab69a8a2..fa10e70118 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -353,7 +353,8 @@ static int Open( vlc_object_t *p_this )
p_dec->fmt_out.i_codec = VLC_CODEC_H264;
p_dec->fmt_out.b_packetized = true;
- if( p_dec->fmt_in.video.i_frame_rate_base > 0 )
+ if( p_dec->fmt_in.video.i_frame_rate_base &&
+ p_dec->fmt_in.video.i_frame_rate )
{
date_Change( &p_sys->dts, p_dec->fmt_in.video.i_frame_rate * 2,
p_dec->fmt_in.video.i_frame_rate_base );
More information about the vlc-commits
mailing list