[vlc-commits] mux:mp4: make CLOCK_FREQ multiple more explicit
Steve Lhomme
git at videolan.org
Fri Jul 6 09:20:50 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun 11 17:36:44 2018 +0200| [87490c9a5d6d46a0b0050c1607e08b75dff86823] | committer: Steve Lhomme
mux:mp4: make CLOCK_FREQ multiple more explicit
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87490c9a5d6d46a0b0050c1607e08b75dff86823
---
modules/mux/mp4/libmp4mux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 6f31fe32cf..bfcb730b05 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -237,7 +237,7 @@ static bo_t *GetESDS(mp4mux_trackinfo_t *p_track)
for (unsigned i = 0; i < p_track->i_entry_count; i++) {
i_bitrate_avg += p_track->entry[i].i_size;
if (p_track->entry[i].i_length > 0) {
- int64_t i_bitrate = INT64_C(8000000) * p_track->entry[i].i_size / p_track->entry[i].i_length;
+ int64_t i_bitrate = CLOCK_FREQ * 8 * p_track->entry[i].i_size / p_track->entry[i].i_length;
if (i_bitrate > i_bitrate_max)
i_bitrate_max = i_bitrate;
}
More information about the vlc-commits
mailing list