Commit ddcf8411 authored by Martin Storsjö's avatar Martin Storsjö

rtpdec: Handle wrapping seq numbers in has_next_packet properly

Originally committed as revision 25461 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d678a6fd
...@@ -574,7 +574,7 @@ static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len) ...@@ -574,7 +574,7 @@ static void enqueue_packet(RTPDemuxContext *s, uint8_t *buf, int len)
static int has_next_packet(RTPDemuxContext *s) 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) int64_t ff_rtp_queued_packet_time(RTPDemuxContext *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment