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
This commit is contained in:

committed by
Diego Biurrun

parent
042ef4b720
commit
80fb82346e
@@ -720,7 +720,7 @@ static void rtsp_skip_packet(AVFormatContext *s)
|
||||
ret = url_readbuf(rt->rtsp_hd, buf, 3);
|
||||
if (ret != 3)
|
||||
return;
|
||||
len = (buf[1] << 8) | buf[2];
|
||||
len = AV_RB16(buf + 1);
|
||||
#ifdef DEBUG
|
||||
printf("skipping RTP packet len=%d\n", len);
|
||||
#endif
|
||||
@@ -1098,7 +1098,7 @@ static int tcp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
|
||||
if (ret != 3)
|
||||
return -1;
|
||||
id = buf[0];
|
||||
len = (buf[1] << 8) | buf[2];
|
||||
len = AV_RB16(buf + 1);
|
||||
#ifdef DEBUG_RTP_TCP
|
||||
printf("id=%d len=%d\n", id, len);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user