diff options
author | Martin Storsjö <martin@martin.st> | 2012-08-16 23:11:13 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-08-17 00:02:26 +0400 |
commit | cb5ab02a88b3598acb23106ad3f140981ba56970 (patch) | |
tree | 66da5b27c2899503218646e447b278422c634c45 /libavformat | |
parent | da8201cc82e379de6d756b993443fdd7e820869c (diff) |
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@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index ca871c9cfa..6205cd2cb2 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 |