[vlc-commits] [Git][videolan/vlc][3.0.x] Revert "packetizer: mpeg4video: remove always true test"

Thomas Guillem (@tguillem) gitlab at videolan.org
Mon Sep 14 14:27:19 UTC 2026



Thomas Guillem pushed to branch 3.0.x at VideoLAN / VLC


Commits:
e0e7e4bc by Steve Lhomme at 2026-09-14T14:10:18+00:00
Revert "packetizer: mpeg4video: remove always true test"

The previous test doesn't prevent p_sys->i_fps_num from being 0 when
reaching this code.

i_interpolated_pts will not be updated until we read a proper i_fps_num value.

This reverts commit 653b801c65747b94e56979b66cd9a004fa785466.

- - - - -


1 changed file:

- modules/packetizer/mpeg4video.c


Changes:

=====================================
modules/packetizer/mpeg4video.c
=====================================
@@ -551,7 +551,7 @@ static int ParseVOP( decoder_t *p_dec, block_t *p_vop )
         p_dec->fmt_in.video.i_frame_rate_base /
         p_dec->fmt_in.video.i_frame_rate;
     }
-    else
+    else if( p_sys->i_fps_num )
     {
         int64_t i_time_diff = (i_time_ref + i_time_increment) - (p_sys->i_last_time + p_sys->i_last_timeincr);
         p_sys->i_interpolated_pts += ( CLOCK_FREQ * i_time_diff / p_sys->i_fps_num );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e0e7e4bc85dd206707cd255e9ef816bb8d320133

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e0e7e4bc85dd206707cd255e9ef816bb8d320133
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