summaryrefslogtreecommitdiff
path: root/libavformat/rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r--libavformat/rtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index da1d942868..637e4d469d 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -603,7 +603,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
return -1;
}
payload_type = buf[1] & 0x7f;
- seq = (buf[2] << 8) | buf[3];
+ seq = AV_RB16(buf + 2);
timestamp = AV_RB32(buf + 4);
ssrc = AV_RB32(buf + 8);
/* store the ssrc in the RTPDemuxContext */