Skip to content

Commit

Permalink
rtpdec: add a trace when jitter buffer is full
Browse files Browse the repository at this point in the history
This commit adds an error trace when jitter buffer
is full. It helps to understand leading decoding issues.

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
ebail authored and michaelni committed Sep 15, 2015
1 parent bc3ea39 commit 0edf6c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libavformat/rtpdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 0edf6c8

Please sign in to comment.