[vlc-commits] [Git][videolan/vlc][master] demux: avi: use samples_from_vlc_tick() to get a duration in bytes
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Feb 14 12:46:54 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
4035f347 by Steve Lhomme at 2025-02-14T12:11:45+00:00
demux: avi: use samples_from_vlc_tick() to get a duration in bytes
If the duration is less than 1s the previous algorithm would give 0 bytes.
- - - - -
1 changed file:
- modules/demux/avi/avi.c
Changes:
=====================================
modules/demux/avi/avi.c
=====================================
@@ -1897,7 +1897,7 @@ static int64_t AVI_PTSToByte( avi_track_t *tk, vlc_tick_t i_pts )
return 0;
i_pts = AVI_Rescale( i_pts, tk->i_scale, tk->i_rate );
- return i_pts / CLOCK_FREQ * tk->i_samplesize;
+ return samples_from_vlc_tick( i_pts, tk->i_samplesize );
}
static vlc_tick_t AVI_GetDPTS( avi_track_t *tk, int64_t i_count )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4035f347e65612a6786711868f20392a867bd31a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4035f347e65612a6786711868f20392a867bd31a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list