rtpdec: add a trace when jitter buffer is full
authorEloi BAIL <eloi.bail@savoirfairelinux.com>
Mon, 14 Sep 2015 18:02:16 +0000 (14:02 -0400)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 15 Sep 2015 11:34:51 +0000 (13:34 +0200)
This commit adds an error trace when jitter buffer
is full. It helps to understand leading decoding issues.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtpdec.c

index d544c1b..c50e98b 100644 (file)
@@ -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;
         }
     }