--- libavformat/rtpdec.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index a305dd6..1c9a9f9 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -62,12 +62,12 @@ static RTPDynamicProtocolHandler opus_dynamic_handler = { }; /* statistics functions */ -static RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL; +static RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler = NULL; void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler) { - handler->next= RTPFirstDynamicPayloadHandler; - RTPFirstDynamicPayloadHandler= handler; + handler->next = RTPFirstDynamicPayloadHandler; + RTPFirstDynamicPayloadHandler = handler; } void av_register_rtp_dynamic_payload_handlers(void) @@ -477,7 +477,7 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, int ext; AVStream *st; uint32_t timestamp; - int rv= 0; + int rv = 0; ext = buf[0] & 0x10; payload_type = buf[1] & 0x7f; @@ -495,9 +495,9 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, st = s->st; // only do something with this if all the rtp checks pass... - if(!rtp_valid_packet_in_sequence(&s->statistics, seq)) - { - av_log(st?st->codec:NULL, AV_LOG_ERROR, "RTP: PT=%02x: bad cseq %04x expected=%04x\n", + if (!rtp_valid_packet_in_sequence(&s->statistics, seq)) { + av_log(st ? st->codec : NULL, AV_LOG_ERROR, + "RTP: PT=%02x: bad cseq %04x expected=%04x\n", payload_type, seq, ((s->seq + 1) & 0xffff)); return -1; } @@ -672,7 +672,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, uint8_t* buf = bufptr ? *bufptr : NULL; int ret, flags = 0; uint32_t timestamp; - int rv= 0; + int rv = 0; if (!buf) { /* If parsing of the previous packet actually returned 0 or an error, @@ -681,12 +681,12 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, if (s->prev_ret <= 0) return rtp_parse_queued_packet(s, pkt); /* return the next packets, if any */ - if(s->st && s->parse_packet) { + if (s->st && s->parse_packet) { /* timestamp should be overwritten by parse_packet, if not, * the packet is left with pts == AV_NOPTS_VALUE */ timestamp = RTP_NOTS_VALUE; - rv= s->parse_packet(s->ic, s->dynamic_protocol_context, - s->st, pkt, ×tamp, NULL, 0, flags); + rv = s->parse_packet(s->ic, s->dynamic_protocol_context, + s->st, pkt, ×tamp, NULL, 0, flags); finalize_packet(s, pkt, timestamp); return rv; } else { @@ -694,7 +694,7 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, if (s->read_buf_index >= s->read_buf_size) return AVERROR(EAGAIN); ret = ff_mpegts_parse_packet(s->ts, pkt, s->buf + s->read_buf_index, - s->read_buf_size - s->read_buf_index); + s->read_buf_size - s->read_buf_index); if (ret < 0) return AVERROR(EAGAIN); s->read_buf_index += ret; -- 1.7.9.4 _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel