---
 libavformat/rtmpproto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 61cd9d4..c003b37 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -822,7 +822,7 @@ static int handle_chunk_size(URLContext *s, RTMPPacket *pkt)
         av_log(s, AV_LOG_ERROR,
                "Chunk size change packet is not 4 bytes long (%d)\n",
                pkt->data_size);
-        return -1;
+        return AVERROR(EINVAL);
     }
 
     if (!rt->is_input) {
-- 
1.7.11.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to