This commit adds an error trace when jitter buffer
is full. It helps to understand leading decoding issues.

Signed-off-by: Eloi BAIL <eloi.b...@savoirfairelinux.com>
---
 libavformat/rtpdec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index fee9547..225b77e 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -710,6 +710,9 @@ static void enqueue_packet(RTPDemuxContext *s, uint8_t 
*buf, int len)
     packet->next     = *cur;
     *cur = packet;
     s->queue_len++;
+    if (s->queue_len >= s->queue_size)
+        av_log(s->st ? s->st->codec : NULL, AV_LOG_ERROR,
+                "jitter buffer full\n");
 }
 
 static int has_next_packet(RTPDemuxContext *s)
-- 
2.1.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to