From 80fb82346e6d680d2ccff761a578fe856ed3b54c Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 6 Jul 2007 09:32:34 +0000 Subject: Use AV_RB* macros where appropriate. patch by Ronald S. Bultje, rsbultje gmail com thread: Re: [FFmpeg-devel] remove int readers date: Sat, 23 Jun 2007 09:32:12 -0400 Originally committed as revision 9499 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rtp.c') 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 */ -- cgit v1.2.3