mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-29 19:52:03 +08:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: (22 commits) configure: add check for w32threads to enable it automatically rtmp: do not hardcode invoke numbers cinepack: return non-generic errors fate-lavf-ts: use -mpegts_transport_stream_id option. Add an APIchanges entry and a minor bump for avio changes. avio: Mark the old interrupt callback mechanism as deprecated avplay: Set the new interrupt callback avconv: Set new interrupt callbacks for all AVFormatContexts, use avio_open2() everywhere cinepak: remove redundant coordinate checks cinepak: check strip_size cinepak, simplify, use AV_RB24() cinepak: simplify, use FFMIN() cinepak: Fix division by zero, ask for sample if encoded_buf_size is 0 applehttp: Fix seeking in streams not starting at DTS=0 http: Don't use the normal http proxy mechanism for https tls: Handle connection via a http proxy http: Reorder two code blocks http: Add a new protocol for opening connections via http proxies http: Split out the non-chunked buffer reading part from http_read segafilm: add support for raw videos ... Conflicts: avconv.c configure doc/APIchanges libavcodec/cinepak.c libavformat/applehttp.c libavformat/version.h tests/lavf-regression.sh tests/ref/lavf/ts Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -429,7 +429,7 @@ static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestam
|
||||
if (timestamp == RTP_NOTS_VALUE)
|
||||
return;
|
||||
|
||||
if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE) {
|
||||
if (s->last_rtcp_ntp_time != AV_NOPTS_VALUE && s->ic->nb_streams > 1) {
|
||||
int64_t addend;
|
||||
int delta_timestamp;
|
||||
|
||||
@@ -444,7 +444,13 @@ static void finalize_packet(RTPDemuxContext *s, AVPacket *pkt, uint32_t timestam
|
||||
|
||||
if (!s->base_timestamp)
|
||||
s->base_timestamp = timestamp;
|
||||
pkt->pts = s->range_start_offset + timestamp - s->base_timestamp;
|
||||
/* assume that the difference is INT32_MIN < x < INT32_MAX, but allow the first timestamp to exceed INT32_MAX */
|
||||
if (!s->timestamp)
|
||||
s->unwrapped_timestamp += timestamp;
|
||||
else
|
||||
s->unwrapped_timestamp += (int32_t)(timestamp - s->timestamp);
|
||||
s->timestamp = timestamp;
|
||||
pkt->pts = s->unwrapped_timestamp + s->range_start_offset - s->base_timestamp;
|
||||
}
|
||||
|
||||
static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
|
||||
|
||||
Reference in New Issue
Block a user