[FFmpeg-cvslog] rtpdec: add a trace when jitter buffer is full

Eloi BAIL git at videolan.org
Tue Sep 15 13:45:58 CEST 2015


ffmpeg | branch: master | Eloi BAIL <eloi.bail at savoirfairelinux.com> | Mon Sep 14 14:02:16 2015 -0400| [0edf6c8b2a976d8af5d4211da565ca30b9759737] | committer: Michael Niedermayer

rtpdec: add a trace when jitter buffer is full

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

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0edf6c8b2a976d8af5d4211da565ca30b9759737
---

 libavformat/rtpdec.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index d544c1b..c50e98b 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -815,8 +815,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_ERROR,
+                        "jitter buffer full\n");
                 return rtp_parse_queued_packet(s, pkt);
+            }
             return -1;
         }
     }



More information about the ffmpeg-cvslog mailing list