Module: libav Branch: master Commit: 452d659aa4a742106c70ffe9ef3df47ef5b81ea6
Author: Luca Barbato <[email protected]> Committer: Luca Barbato <[email protected]> Date: Sun Nov 1 04:07:45 2015 +0100 msnwc_tcp: Use the correct return values Signed-off-by: Luca Barbato <[email protected]> --- 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; _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
