[libav-commits] rtmpproto: Fix assignments in if()

Michael Niedermayer git at libav.org
Mon Jan 14 12:13:53 CET 2013


Module: libav
Branch: master
Commit: 6dc8505417c9829414b408413a9ff5caea88fec8

Author:    Michael Niedermayer <michaelni at gmx.at>
Committer: Martin Storsjö <martin at martin.st>
Date:      Mon Jan 14 00:07:51 2013 +0100

rtmpproto: Fix assignments in if()

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

---

 libavformat/rtmpproto.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index f25a79b..78ebbf1 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -1992,7 +1992,7 @@ static int handle_invoke(URLContext *s, RTMPPacket *pkt)
                !memcmp(pkt->data, "\002\000\007publish", 10)       ||
                !memcmp(pkt->data, "\002\000\010_checkbw", 11)      ||
                !memcmp(pkt->data, "\002\000\014createStream", 15)) {
-        if (ret = send_invoke_response(s, pkt) < 0)
+        if ((ret = send_invoke_response(s, pkt)) < 0)
             return ret;
     }
 



More information about the libav-commits mailing list