|
|
@@ -245,7 +245,7 @@ static int sap_write_packet(AVFormatContext *s, AVPacket *pkt) |
|
|
{ |
|
|
{ |
|
|
AVFormatContext *rtpctx; |
|
|
AVFormatContext *rtpctx; |
|
|
struct SAPState *sap = s->priv_data; |
|
|
struct SAPState *sap = s->priv_data; |
|
|
int64_t now = av_gettime(); |
|
|
|
|
|
|
|
|
int64_t now = av_gettime_relative(); |
|
|
|
|
|
|
|
|
if (!sap->last_time || now - sap->last_time > 5000000) { |
|
|
if (!sap->last_time || now - sap->last_time > 5000000) { |
|
|
int ret = ffurl_write(sap->ann_fd, sap->ann, sap->ann_size); |
|
|
int ret = ffurl_write(sap->ann_fd, sap->ann, sap->ann_size); |
|
|
|