[vlc-devel] commit: Use CLOCK_FREQ ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Jun 9 17:59:27 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 9 18:46:13 2009 +0300| [3df8b1ab5a654ea95d4e550894ad292a78375132] | committer: Rémi Denis-Courmont
Use CLOCK_FREQ
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3df8b1ab5a654ea95d4e550894ad292a78375132
---
modules/stream_out/rtp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 5f8e1b3..e96139e 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1631,7 +1631,7 @@ unsigned rtp_get_num( const sout_stream_id_t *id )
void rtp_packetize_common( sout_stream_id_t *id, block_t *out,
int b_marker, int64_t i_pts )
{
- uint32_t i_timestamp = i_pts * (int64_t)id->i_clock_rate / INT64_C(1000000);
+ uint32_t i_timestamp = i_pts * (int64_t)id->i_clock_rate / INT64_C(CLOCK_FREQ);
out->p_buffer[0] = 0x80;
out->p_buffer[1] = (b_marker?0x80:0x00)|id->i_payload_type;
More information about the vlc-devel
mailing list