diff options
author | Fred Rothganger <frothga@sandia.gov> | 2014-03-11 17:58:34 -0600 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-12 13:33:14 +0100 |
commit | 3f3229cd109f5cdf1f1d6fe26f2864e32e029b53 (patch) | |
tree | 4d0a2895c5ac1e1e3fc529a439f6b5d1b1ba6790 /libavformat/sapenc.c | |
parent | 581957cd8618f07d824da1b9f6ae1c97531b03ab (diff) | |
download | ffmpeg-3f3229cd109f5cdf1f1d6fe26f2864e32e029b53.tar.gz |
avformat: extracting NTP timestamp from RTCP
For muxing, it accepts
both 0 and AV_NOPTS_VALUE. For demuxing, it will present
AV_NOPTS_VALUE when start_time_realtime is unknown.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/sapenc.c')
-rw-r--r-- | libavformat/sapenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 9fc78a83af..738e8b8f91 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -140,7 +140,8 @@ static int sap_write_header(AVFormatContext *s) goto fail; } - s->start_time_realtime = av_gettime(); + if (s->start_time_realtime == 0 || s->start_time_realtime == AV_NOPTS_VALUE) + s->start_time_realtime = av_gettime(); for (i = 0; i < s->nb_streams; i++) { URLContext *fd; |