diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2007-07-06 09:32:34 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-07-06 09:32:34 +0000 |
commit | 80fb82346e6d680d2ccff761a578fe856ed3b54c (patch) | |
tree | b6f45c841d9e30729aaf265e8dbd645bf5ff5b61 /libavformat/rtp.c | |
parent | 042ef4b720f5d3321d9b7eeeb2067c671d5aeefd (diff) | |
download | ffmpeg-80fb82346e6d680d2ccff761a578fe856ed3b54c.tar.gz |
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
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r-- | libavformat/rtp.c | 2 |
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 */ |