[FFmpeg-cvslog] rtmp: Use int instead of ssize_t

Martin Storsjö git at videolan.org
Fri Aug 17 17:10:46 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Aug 16 22:11:13 2012 +0300| [cb5ab02a88b3598acb23106ad3f140981ba56970] | committer: Martin Storsjö

rtmp: Use int instead of ssize_t

Not all compilers support ssize_t (MSVC doesn't), and none of these
variables need to be larger than 32 bit.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cb5ab02a88b3598acb23106ad3f140981ba56970
---

 libavformat/rtmpproto.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index ca871c9..6205cd2 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1293,7 +1293,7 @@ static int rtmp_receive_hs_packet(RTMPContext* rt, uint32_t *first_int,
                                   uint32_t *second_int, char *arraydata,
                                   int size)
 {
-    ssize_t inoutsize;
+    int inoutsize;
 
     inoutsize = ffurl_read_complete(rt->stream, arraydata,
                                     RTMP_HANDSHAKE_PACKET_SIZE);
@@ -1313,7 +1313,7 @@ static int rtmp_receive_hs_packet(RTMPContext* rt, uint32_t *first_int,
 static int rtmp_send_hs_packet(RTMPContext* rt, uint32_t first_int,
                                uint32_t second_int, char *arraydata, int size)
 {
-    ssize_t inoutsize;
+    int inoutsize;
 
     AV_WB32(arraydata, first_int);
     AV_WB32(arraydata + 4, first_int);
@@ -1340,7 +1340,7 @@ static int rtmp_server_handshake(URLContext *s, RTMPContext *rt)
     uint32_t zeroes;
     uint32_t temp       = 0;
     int randomidx       = 0;
-    ssize_t inoutsize   = 0;
+    int inoutsize       = 0;
     int ret;
 
     inoutsize = ffurl_read_complete(rt->stream, buffer, 1);       // Receive C0



More information about the ffmpeg-cvslog mailing list