summaryrefslogtreecommitdiff
path: root/libavformat/rtmpproto.c
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2012-07-25 20:51:10 +0200
committerMartin Storsjö <martin@martin.st>2012-07-25 23:57:00 +0300
commitbe8f949219c03e6bf93d8d563ef33b8ad4faa1e9 (patch)
tree715d1eb25c96309e4eafe3df4a498d37b62ca15c /libavformat/rtmpproto.c
parent088a82bb33d64b95e71a9a7f06ca19cc61ffa8d4 (diff)
rtmp: Return proper error code in handle_server_bw
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r--libavformat/rtmpproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index be61074b16..5ac60d21a0 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -946,7 +946,7 @@ static int handle_server_bw(URLContext *s, RTMPPacket *pkt)
if (rt->server_bw <= 0) {
av_log(s, AV_LOG_ERROR, "Incorrect server bandwidth %d\n",
rt->server_bw);
- return AVERROR(EINVAL);
+ return AVERROR_INVALIDDATA;
}
av_log(s, AV_LOG_DEBUG, "Server bandwidth = %d\n", rt->server_bw);