aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-12-30 18:53:35 +0200
committerMartin Storsjö <martin@martin.st>2012-12-31 13:39:06 +0200
commitc76daa89ab91ebbd9e29d289d207bf88213255ae (patch)
tree0e3dec814fb85c65231aaad54abc0142d573c964 /libavformat
parent506409776c49910050f3150d0e51d11b44d323ed (diff)
downloadffmpeg-c76daa89ab91ebbd9e29d289d207bf88213255ae.tar.gz
rtmp: Return a proper error code in handle_invoke_error
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 8924fb3c19..4e059d6674 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -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);
}