summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorEloi BAIL <eloi.bail@savoirfairelinux.com>2015-09-15 11:38:21 -0400
committerMartin Storsjö <martin@martin.st>2015-09-16 09:54:14 +0300
commitff7f6ea9db2a77d74f7e68a716f53ba1f3f85017 (patch)
treebf4ca2d3c0611ba55c0a5f503db5fc965ff81382 /libavformat/rtpdec.c
parent3c525b8b4770c1ac5f466a12c5523802bd5d40eb (diff)
rtpdec: add a trace when jitter buffer is full
This commit adds a warning trace when jitter buffer is full. It helps to understand leading decoding issues. Signed-off-by: Eloi BAIL <eloi.bail@savoirfairelinux.com> Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 0efcdb9123..5706f16800 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -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;
}
}