Mercurial > libavformat.hg
diff rtp.c @ 2222:3427d0c63a32 libavformat
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
author | diego |
---|---|
date | Fri, 06 Jul 2007 09:32:34 +0000 |
parents | dbcfc6a4c016 |
children | b21c2af60bc9 |
line wrap: on
line diff
--- a/rtp.c Fri Jul 06 07:18:25 2007 +0000 +++ b/rtp.c Fri Jul 06 09:32:34 2007 +0000 @@ -603,7 +603,7 @@ 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 */