Commit be8f9492 authored by Samuel Pitoiset's avatar Samuel Pitoiset Committed by Martin Storsjö
Browse files

rtmp: Return proper error code in handle_server_bw


Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 088a82bb
...@@ -946,7 +946,7 @@ static int handle_server_bw(URLContext *s, RTMPPacket *pkt) ...@@ -946,7 +946,7 @@ static int handle_server_bw(URLContext *s, RTMPPacket *pkt)
if (rt->server_bw <= 0) { if (rt->server_bw <= 0) {
av_log(s, AV_LOG_ERROR, "Incorrect server bandwidth %d\n", av_log(s, AV_LOG_ERROR, "Incorrect server bandwidth %d\n",
rt->server_bw); rt->server_bw);
return AVERROR(EINVAL); return AVERROR_INVALIDDATA;
} }
av_log(s, AV_LOG_DEBUG, "Server bandwidth = %d\n", rt->server_bw); av_log(s, AV_LOG_DEBUG, "Server bandwidth = %d\n", rt->server_bw);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment