From 452d659aa4a742106c70ffe9ef3df47ef5b81ea6 Mon Sep 17 00:00:00 2001
From: Luca Barbato <lu_zero@gentoo.org>
Date: Sun, 1 Nov 2015 04:07:45 +0100
Subject: [PATCH] msnwc_tcp: Use the correct return values

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
---
 libavformat/msnwc_tcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/msnwc_tcp.c b/libavformat/msnwc_tcp.c
index bb00c877515..6cf7f9f009f 100644
--- a/libavformat/msnwc_tcp.c
+++ b/libavformat/msnwc_tcp.c
@@ -68,7 +68,7 @@ static int msnwc_tcp_probe(AVProbeData *p)
         }
     }
 
-    return -1;
+    return 0;
 }
 
 static int msnwc_tcp_read_header(AVFormatContext *ctx)
@@ -94,7 +94,7 @@ static int msnwc_tcp_read_header(AVFormatContext *ctx)
 
     if (pb->eof_reached) {
         av_log(ctx, AV_LOG_ERROR, "Could not find valid start.");
-        return -1;
+        return AVERROR_INVALIDDATA;
     }
 
     return 0;
-- 
GitLab