From 088a82bb33d64b95e71a9a7f06ca19cc61ffa8d4 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset <samuel.pitoiset@gmail.com> Date: Wed, 25 Jul 2012 20:51:09 +0200 Subject: [PATCH] rtmp: Return proper error code in handle_client_bw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö <martin@martin.st> --- libavformat/rtmpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 5aa6a540c5b..be61074b169 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -930,7 +930,7 @@ static int handle_client_bw(URLContext *s, RTMPPacket *pkt) av_log(s, AV_LOG_ERROR, "Client bandwidth report packet is less than 4 bytes long (%d)\n", pkt->data_size); - return -1; + return AVERROR_INVALIDDATA; } av_log(s, AV_LOG_DEBUG, "Client bandwidth = %d\n", AV_RB32(pkt->data)); rt->client_report_size = AV_RB32(pkt->data) >> 1; -- GitLab