[FFmpeg-cvslog] rtmp: Return a proper error code in handle_invoke_error
Martin Storsjö
git at videolan.org
Tue Jan 1 13:58:19 CET 2013
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Sun Dec 30 18:53:35 2012 +0200| [c76daa89ab91ebbd9e29d289d207bf88213255ae] | committer: Martin Storsjö
rtmp: Return a proper error code in handle_invoke_error
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c76daa89ab91ebbd9e29d289d207bf88213255ae
---
libavformat/rtmpproto.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 8924fb3..4e059d6 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);
}
More information about the ffmpeg-cvslog
mailing list