[FFmpeg-devel] Realmedia patch

Luca Abeni lucabe72
Mon Sep 1 23:10:59 CEST 2008


Hi Ronald,

Ronald S. Bultje wrote:
[...]
> Do you happen to know why rtpdec.c calls set_pts_info() with values
> depending on the stream type? What is the logic, and what should the
> values represent?

set_pts_info() is used to set the time base, and in RTP the time base
depends on the payload type - the packetization of every different
payload type is described in a different RFC, which also specify the
time base for the RTP timestamps. Generally, the time base for
audio streams is based on the sample rate, and is specified in
the SDP (mp2 and mp3 audio is an exception, having a time base
of 1/90000 independently from the sample rate).



			Luca




More information about the ffmpeg-devel mailing list