projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d678a6f
)
rtpdec: Handle wrapping seq numbers in has_next_packet properly
author
Martin Storsjö
<martin@martin.st>
Wed, 13 Oct 2010 08:15:39 +0000
(08:15 +0000)
committer
Martin Storsjö
<martin@martin.st>
Wed, 13 Oct 2010 08:15:39 +0000
(08:15 +0000)
Originally committed as revision 25461 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtpdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec.c
b/libavformat/rtpdec.c
index c7fd3cfa9eb242067f21a4ee664caedda5f246c9..f9ff972734e295f029c4b16f77fe271628e4cd98 100644
(file)
--- a/
libavformat/rtpdec.c
+++ b/
libavformat/rtpdec.c
@@
-574,7
+574,7
@@
static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len)
static int has_next_packet(RTPDemuxContext *s)
{
- return s->queue && s->queue->seq ==
s->seq + 1
;
+ return s->queue && s->queue->seq ==
(uint16_t) (s->seq + 1)
;
}
int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s)