This commit adds a warning trace when jitter buffer is full. It helps to understand leading decoding issues.
Signed-off-by: Eloi BAIL <[email protected]> --- libavformat/rtpdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index 0efcdb9..1d4b06c 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -703,6 +703,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_WARNING, + "jitter buffer full\n"); } static int has_next_packet(RTPDemuxContext *s) -- 2.1.4 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
