diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-24 00:11:14 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-24 00:11:14 +0200 |
commit | dc31b84cbfb73b31211afaacfb8d340c14282a2e (patch) | |
tree | 00e905a2f3b1c440abcb32a23d02ae34f4cf9992 | |
parent | c66495c6d7b9159066b102eca56d24fd3cab2f16 (diff) | |
download | ffmpeg-dc31b84cbfb73b31211afaacfb8d340c14282a2e.tar.gz |
rtmpproto: fix compilation without optimizations
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/rtmpproto.c | 3 |
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 |