aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/msnwc_tcp.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-11-01 04:07:45 +0100
committerLuca Barbato <lu_zero@gentoo.org>2015-11-02 16:27:42 +0100
commit452d659aa4a742106c70ffe9ef3df47ef5b81ea6 (patch)
treef939b4e3fb78fd794528407a1428aad0d72dc102 /libavformat/msnwc_tcp.c
parentf8d10511fef0bb3265f2d7bdfd38f90f60731d80 (diff)
downloadffmpeg-452d659aa4a742106c70ffe9ef3df47ef5b81ea6.tar.gz
msnwc_tcp: Use the correct return values
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/msnwc_tcp.c')
-rw-r--r--libavformat/msnwc_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/msnwc_tcp.c b/libavformat/msnwc_tcp.c
index bb00c87751..6cf7f9f009 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;