[libav-commits] msnwc_tcp: Use the correct return values

Luca Barbato git at libav.org
Mon Nov 2 21:05:10 CET 2015


Module: libav
Branch: master
Commit: 452d659aa4a742106c70ffe9ef3df47ef5b81ea6

Author:    Luca Barbato <lu_zero at gentoo.org>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Sun Nov  1 04:07:45 2015 +0100

msnwc_tcp: Use the correct return values

Signed-off-by: Luca Barbato <lu_zero at 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 bb00c87..6cf7f9f 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;



More information about the libav-commits mailing list