[FFmpeg-user] The device does not support the streaming I/O method.
Carl Eugen Hoyos
cehoyos at ag.or.at
Sun Jan 25 18:07:26 CET 2015
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
More information about the ffmpeg-user
mailing list