[FFmpeg-devel] [PATCH] Introduce a AVFMT_FLAG_USE_TIME avformat flag

Luca Abeni lucabe72
Fri Feb 15 12:31:50 CET 2008

Hi all,

in the recent "Fix NTP time in RTCP SR packets" thread
there was a discussion about using av_gettime() in the
RTP muxer (for filling the NTP field in RTCP packets).

Since this can potentially lead to security problems,
it should not be done by default, but putting an NTP
time in RTCP packets can be very useful in some cases...
So, I propose to add a new "AVFMT_FLAG_USE_TIME" flag,
which allows muxers to use av_gettime() (some other
muxers can take advantage of this).

Comments are welcome.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: avformat-introduce-time-flag.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080215/8a750229/attachment.asc>

More information about the ffmpeg-devel mailing list