We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 483d21d commit 49ddf94Copy full SHA for 49ddf94
src/video_capture/v4l2.c
@@ -693,8 +693,7 @@ static int vidcap_v4l2_init(struct vidcap_params *params, void **state)
693
memcpy(fcc, &fmt.fmt.pix.pixelformat, 4);
694
fcc[4] = '\0';
695
log_msg(LOG_LEVEL_WARNING, MOD_NAME "No mapping for FCC '%s', converting to RGB!\n", fcc);
696
- opts.v4l2_convert_to = s->dst_fmt.fmt.pix.pixelformat =
697
- V4L2_PIX_FMT_RGB24;
+ opts.v4l2_convert_to = RGB;
698
}
699
700
if (opts.v4l2_convert_to != VC_NONE) {
0 commit comments