From 77c0b149be120ab6b0a0a536b309aba0d4bc8261 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 29 Jun 2015 16:27:36 +0200 Subject: lavf/mpegts: Return 0 if the probe function does not detect mpegts. Reduces console spamming on debug level. --- libavformat/mpegts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavformat') diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 37043a69f4..4a8a244a67 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2439,7 +2439,7 @@ static int mpegts_probe(AVProbeData *p) #define CHECK_BLOCK 100 if (check_count < CHECK_COUNT) - return AVERROR_INVALIDDATA; + return 0; for (i = 0; i 6) return AVPROBE_SCORE_MAX + sumscore - CHECK_COUNT; else if (maxscore > 6) return AVPROBE_SCORE_MAX/2 + sumscore - CHECK_COUNT; else - return AVERROR_INVALIDDATA; + return 0; } /* return the 90kHz PCR and the extension for the 27MHz PCR. return -- cgit v1.2.3