Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> -        return AVPROBE_SCORE_MAX - 1;
> +        return AVPROBE_SCORE_EXTENSION + 1;

Sorry, I wanted you to test EXTENSION / 2 +1:

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 8337cf5..3676f63 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -815,7 +815,7 @@ static int device_try_init(AVFormatContext *ctx,
 static int v4l2_read_probe(AVProbeData *p)
 {
     if (av_strstart(p->filename, "/dev/video", NULL))
-        return AVPROBE_SCORE_MAX - 1;
+        return AVPROBE_SCORE_EXTENSION / 2 + 1;
     return 0;
 }
 


Sorry, Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Reply via email to