msnwc_tcp: Use the correct return values

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Luca Barbato 2015-11-01 04:07:45 +01:00
parent f8d10511fe
commit 452d659aa4

View file

@ -68,7 +68,7 @@ static int msnwc_tcp_probe(AVProbeData *p)
} }
} }
return -1; return 0;
} }
static int msnwc_tcp_read_header(AVFormatContext *ctx) static int msnwc_tcp_read_header(AVFormatContext *ctx)
@ -94,7 +94,7 @@ static int msnwc_tcp_read_header(AVFormatContext *ctx)
if (pb->eof_reached) { if (pb->eof_reached) {
av_log(ctx, AV_LOG_ERROR, "Could not find valid start."); av_log(ctx, AV_LOG_ERROR, "Could not find valid start.");
return -1; return AVERROR_INVALIDDATA;
} }
return 0; return 0;