summaryrefslogtreecommitdiff
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-13 08:15:39 +0000
committerMartin Storsjö <martin@martin.st>2010-10-13 08:15:39 +0000
commitddcf84119141fffd233370837ddbc5bf5d68c87e (patch)
tree9428ab6de3675a8d98653d7a2cfa9a4cbc361b34 /libavformat/rtpdec.c
parentd678a6fd826cdbc2154d14dcfdaac1d5f6507f46 (diff)
rtpdec: Handle wrapping seq numbers in has_next_packet properly
Originally committed as revision 25461 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index c7fd3cfa9e..f9ff972734 100644
--- 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)