diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c index fb1e5b9ea7..732ca26a58 100644 --- a/libavformat/rtpdec.c +++ b/libavformat/rtpdec.c @@ -629,6 +629,10 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt, len -= padding; } + h = buf[0] & 0x0F; + buf += 4*h; + len -= 4*h; + s->seq = seq; len -= 12; buf += 12;