Commit 3cb2a497 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: h26x: fix div by zero (fix #17634)

not intuitive, but something was divided by numerator
parent e1a253f4
......@@ -443,7 +443,8 @@ static int Demux( demux_t *p_demux)
if( !p_sys->frame_rate_den )
{
/* Use packetizer's one */
if( p_sys->p_packetizer->fmt_out.video.i_frame_rate_base )
if( p_sys->p_packetizer->fmt_out.video.i_frame_rate_base &&
p_sys->p_packetizer->fmt_out.video.i_frame_rate )
{
p_sys->frame_rate_num = p_sys->p_packetizer->fmt_out.video.i_frame_rate;
p_sys->frame_rate_den = p_sys->p_packetizer->fmt_out.video.i_frame_rate_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment