Browse Source

msnwc_tcp: Use the correct return values

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n3.0
Luca Barbato 9 years ago
parent
commit
452d659aa4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/msnwc_tcp.c

+ 2
- 2
libavformat/msnwc_tcp.c 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)
@@ -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;


Loading…
Cancel
Save