rtmp: Return a proper error code in handle_invoke_error
authorMartin Storsjö <martin@martin.st>
Sun, 30 Dec 2012 16:53:35 +0000 (18:53 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 31 Dec 2012 11:39:06 +0000 (13:39 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpproto.c

index 8924fb3..4e059d6 100644 (file)
@@ -1533,7 +1533,7 @@ static int handle_invoke_error(URLContext *s, RTMPPacket *pkt)
             level = AV_LOG_WARNING;
             ret = 0;
         } else
-            ret = -1;
+            ret = AVERROR_UNKNOWN;
         av_log(s, level, "Server error: %s\n", tmpstr);
     }