From 178e3c346cf8ded7a3a2fc07b52e3003dfda9eb1 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 2 Mar 2017 10:27:55 +0100 Subject: [PATCH] DVS: Fixed an error Cannot test by now but it seemed that there has been a wrong condition whether autodetect format or not. --- src/video_capture/dvs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_capture/dvs.c b/src/video_capture/dvs.c index 2b0fcae62..c10871a41 100644 --- a/src/video_capture/dvs.c +++ b/src/video_capture/dvs.c @@ -368,7 +368,7 @@ static int vidcap_dvs_init(const struct vidcap_params *params, void **state) s->hd_video_mode = 0; - if(!s->mode) { + if (s->mode) { switch(s->frame->color_spec) { case DVS10: s->hd_video_mode |= SV_MODE_COLOR_YUV422 | SV_MODE_NBIT_10BDVS;