diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2012-07-25 20:51:10 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-07-25 23:57:00 +0300 |
commit | be8f949219c03e6bf93d8d563ef33b8ad4faa1e9 (patch) | |
tree | 715d1eb25c96309e4eafe3df4a498d37b62ca15c /libavformat | |
parent | 088a82bb33d64b95e71a9a7f06ca19cc61ffa8d4 (diff) | |
download | ffmpeg-be8f949219c03e6bf93d8d563ef33b8ad4faa1e9.tar.gz |
rtmp: Return proper error code in handle_server_bw
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
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); |