Commit dc31b84c authored by Michael Niedermayer's avatar Michael Niedermayer

rtmpproto: fix compilation without optimizations

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c66495c6
...@@ -719,7 +719,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt) ...@@ -719,7 +719,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
int i; int i;
int server_pos, client_pos; int server_pos, client_pos;
uint8_t digest[32], signature[32]; uint8_t digest[32], signature[32];
int encrypted = rt->encrypted && CONFIG_FFRTMPCRYPT_PROTOCOL; #define encrypted (CONFIG_FFRTMPCRYPT_PROTOCOL && rt->encrypted)
int ret, type = 0; int ret, type = 0;
av_log(s, AV_LOG_DEBUG, "Handshaking...\n"); av_log(s, AV_LOG_DEBUG, "Handshaking...\n");
...@@ -874,6 +874,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt) ...@@ -874,6 +874,7 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
return 0; return 0;
} }
#undef encrypted
/** /**
* Parse received packet and possibly perform some action depending on * Parse received packet and possibly perform some action depending on
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment