/* Set TV standard format */
tvout_std.index = 1; //第一处修改
ret = ioctl(tvout_fp, VIDIOC_ENUMSTD, &tvout_std);
if(ret < 0) {
printf("V4L2 APPL : ioctl(VIDIOC_ENUMSTD) failed\n");
goto err;
}
tvout_std.id = V4L2_STD_PAL; //第二处修改
ret = ioctl(tvout_fp, VIDIOC_S_STD, &tvout_std.id);
if(ret < 0) {
printf("V4L2 APPL : ioctl(VIDIOC_S_STD) failed\n");
goto err;
}
//////////////////////
const struct v4l2_standard tvout_standards[] = {
{
.index = 0,
.id = V4L2_STD_NTSC_M,
.name = "NTSC type",
},
{
.index = 1,
.id = V4L2_STD_PAL,
.name = "PAL type",
}
};
/////////////////////////////////