[vlc-commits] packetizer: hevc: fix divbyzero
Francois Cartegnie
git at videolan.org
Mon Apr 17 16:08:19 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Apr 17 16:05:27 2017 +0200| [3394fd17c0e552cdbee64cf095aa8917796133bf] | committer: Francois Cartegnie
packetizer: hevc: fix divbyzero
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3394fd17c0e552cdbee64cf095aa8917796133bf
---
modules/packetizer/hevc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 31192813fc..06f5a43fa2 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -456,7 +456,7 @@ static void ActivateSets(decoder_t *p_dec,
p_sys->p_active_vps = p_vps;
if(p_sps)
{
- if(!p_dec->fmt_in.video.i_frame_rate)
+ if(!p_dec->fmt_in.video.i_frame_rate || !p_dec->fmt_in.video.i_frame_rate_base)
{
unsigned num, den;
if(hevc_get_frame_rate( p_sps, p_dec->p_sys->rgi_p_decvps, &num, &den ))
More information about the vlc-commits
mailing list