summaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-24 00:11:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-24 00:11:14 +0200
commitdc31b84cbfb73b31211afaacfb8d340c14282a2e (patch)
tree00e905a2f3b1c440abcb32a23d02ae34f4cf9992 /libavformat/rtmpproto.c
parentc66495c6d7b9159066b102eca56d24fd3cab2f16 (diff)
rtmpproto: fix compilation without optimizations
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 22287c82b6..a85ed31a5f 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -719,7 +719,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
int i;
int server_pos, client_pos;
uint8_t digest[32], signature[32];
- int encrypted = rt->encrypted && CONFIG_FFRTMPCRYPT_PROTOCOL;
+#define encrypted (CONFIG_FFRTMPCRYPT_PROTOCOL && rt->encrypted)
int ret, type = 0;
av_log(s, AV_LOG_DEBUG, "Handshaking...\n");
@@ -874,6 +874,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
return 0;
}
+#undef encrypted
/**
* Parse received packet and possibly perform some action depending on