[FFmpeg-devel] [PATCH 1/2] rtpdec: add a trace when jitter buffer	is full
    Eloi BAIL 
    eloi.bail at savoirfairelinux.com
       
    Mon Sep 14 20:02:16 CEST 2015
    
    
  
This commit adds an error trace when jitter buffer
is full. It helps to understand leading decoding issues.
Signed-off-by: Eloi BAIL <eloi.bail at 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
    
    
More information about the ffmpeg-devel
mailing list