Skip to content

Commit

Permalink
rtpdec: add a trace when jitter buffer is full
Browse files Browse the repository at this point in the history
This commit adds a warning trace when jitter buffer
is full. It helps to understand leading decoding issues.

Signed-off-by: Eloi BAIL <[email protected]>
Signed-off-by: Martin Storsjö <[email protected]>
  • Loading branch information
ebail authored and mstorsjo committed Sep 16, 2015
1 parent 3c525b8 commit ff7f6ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libavformat/rtpdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,11 @@ static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt,
*bufptr = NULL;
/* Return the first enqueued packet if the queue is full,
* even if we're missing something */
if (s->queue_len >= s->queue_size)
if (s->queue_len >= s->queue_size) {
av_log(s->st ? s->st->codec : NULL, AV_LOG_WARNING,
"jitter buffer full\n");
return rtp_parse_queued_packet(s, pkt);
}
return -1;
}
}
Expand Down

0 comments on commit ff7f6ea

Please sign in to comment.