[vlc-commits] [Git][videolan/vlc][master] 2 commits: packetizer: vc1: only change the frame rate with valid values
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Apr 13 05:43:43 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
39119024 by Steve Lhomme at 2026-04-13T05:27:06+00:00
packetizer: vc1: only change the frame rate with valid values
i_fps_num or i_fps_den may be 0 if the bits have undocumented values.
We should not update the dts rate if we don't have proper values.
Fixes #29745
- - - - -
39d3a988 by Steve Lhomme at 2026-04-13T05:27:06+00:00
packetizer: vc1: fix indentation
- - - - -
1 changed file:
- modules/packetizer/vc1.c
Changes:
=====================================
modules/packetizer/vc1.c
=====================================
@@ -608,12 +608,14 @@ static block_t *ParseIDU( decoder_t *p_dec, bool *pb_ts_used, block_t *p_frag )
if( i_fps_num != 0 && i_fps_den != 0 &&
(p_dec->fmt_in->video.i_frame_rate == 0 ||
p_dec->fmt_in->video.i_frame_rate_base == 0) )
+ {
vlc_ureduce( &p_es->video.i_frame_rate, &p_es->video.i_frame_rate_base, i_fps_num, i_fps_den, 0 );
- if( !p_sys->b_sequence_header )
- {
- msg_Dbg( p_dec, "frame rate %d/%d", p_es->video.i_frame_rate, p_es->video.i_frame_rate_base );
- date_Change( &p_sys->dts, p_es->video.i_frame_rate * 2, p_es->video.i_frame_rate_base );
+ if( !p_sys->b_sequence_header )
+ {
+ msg_Dbg( p_dec, "frame rate %d/%d", p_es->video.i_frame_rate, p_es->video.i_frame_rate_base );
+ date_Change( &p_sys->dts, p_es->video.i_frame_rate * 2, p_es->video.i_frame_rate_base );
+ }
}
}
if( bs_read1( &s ) && /* Color Format */
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/67362544b766cd3043ae431d9547491a45116c5e...39d3a988da8621490a357c88b7a9e05c520df820
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/67362544b766cd3043ae431d9547491a45116c5e...39d3a988da8621490a357c88b7a9e05c520df820
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list