Use default color space in v4l2 plugin

This commit is contained in:
fryshorts
2014-07-16 23:41:38 +02:00
parent ba3c093156
commit 87a527701a

View File

@@ -297,9 +297,9 @@ static void *v4l2_thread(void *vptr)
break;
}
video_format_get_parameters(VIDEO_CS_709, VIDEO_RANGE_PARTIAL,
out.color_matrix, out.color_range_min,
out.color_range_max);
video_format_get_parameters(VIDEO_CS_DEFAULT,
VIDEO_RANGE_PARTIAL, out.color_matrix,
out.color_range_min, out.color_range_max);
out.data[0] = (uint8_t *) data->buf[buf.index].start;
out.linesize[0] = data->linesize;
out.width = data->width;