Patch by Limin Wang, edited by me
Originally committed as revision 8971 to svn://svn.ffmpeg.org/ffmpeg/trunk
struct v4l2_standard standard;
int i;
+ if(ap->channel>=0) {
/* set tv video input */
memset (&input, 0, sizeof (input));
input.index = ap->channel;
ap->channel);
return AVERROR_IO;
}
+ }
+ if(ap->standard) {
av_log(s1, AV_LOG_DEBUG, "The V4L2 driver set standard: %s\n",
ap->standard );
/* set tv standard */
ap->standard);
return AVERROR_IO;
}
+ }
return 0;
}