[vlc-commits] [Git][videolan/vlc][master] demux: mpegvideo: do not use the frame rate if it's too large
Rémi Denis-Courmont (@Courmisch)
gitlab at videolan.org
Sat Aug 29 07:20:55 UTC 2026
Rémi Denis-Courmont pushed to branch master at VideoLAN / VLC
Commits:
efd59416 by Steve Lhomme at 2026-08-29T10:12:48+03:00
demux: mpegvideo: do not use the frame rate if it's too large
Fixes #30074
- - - - -
1 changed file:
- modules/packetizer/mpegvideo.c
Changes:
=====================================
modules/packetizer/mpegvideo.c
=====================================
@@ -57,6 +57,7 @@
#include "h26x_nal_common.h"
#include <limits.h>
+#include <stdckdint.h>
#define SYNC_INTRAFRAME_TEXT N_("Sync on Intra Frame")
#define SYNC_INTRAFRAME_LONGTEXT N_("Normally the packetizer would " \
@@ -232,7 +233,8 @@ static int Open( vlc_object_t *p_this )
p_sys->i_pts = VLC_TICK_INVALID;
unsigned num, den;
- if( p_dec->fmt_in->video.i_frame_rate && p_dec->fmt_in->video.i_frame_rate_base )
+ if( p_dec->fmt_in->video.i_frame_rate && p_dec->fmt_in->video.i_frame_rate_base &&
+ !ckd_mul(&num, p_dec->fmt_in->video.i_frame_rate, 2) )
{
num = p_dec->fmt_in->video.i_frame_rate;
den = p_dec->fmt_in->video.i_frame_rate_base;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/efd59416ac5a7fe4bbf969e556590068b56ace2a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/efd59416ac5a7fe4bbf969e556590068b56ace2a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list