[FFmpeg-cvslog] r8971 - trunk/libavformat/v4l2.c
lucabe
subversion
Thu May 10 12:14:42 CEST 2007
Author: lucabe
Date: Thu May 10 12:14:42 2007
New Revision: 8971
Log:
Allow avoid setting the video standard and input when capturing v4l2 video.
Patch by Limin Wang, edited by me
Modified:
trunk/libavformat/v4l2.c
Modified: trunk/libavformat/v4l2.c
==============================================================================
--- trunk/libavformat/v4l2.c (original)
+++ trunk/libavformat/v4l2.c Thu May 10 12:14:42 2007
@@ -429,6 +429,7 @@ static int v4l2_set_parameters( AVFormat
struct v4l2_standard standard;
int i;
+ if(ap->channel>=0) {
/* set tv video input */
memset (&input, 0, sizeof (input));
input.index = ap->channel;
@@ -444,7 +445,9 @@ static int v4l2_set_parameters( AVFormat
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 */
@@ -469,6 +472,7 @@ static int v4l2_set_parameters( AVFormat
ap->standard);
return AVERROR_IO;
}
+ }
return 0;
}
More information about the ffmpeg-cvslog
mailing list