Skip to content

Commit

Permalink
V4L/DVB (3372): Fix a small bug when constructing fps and line numbers
Browse files Browse the repository at this point in the history
Previously, only NTSC and PAL/M were associated to 30fps and
525 lines, so, PAL/60 were not handled properly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 27, 2006
1 parent 41f38b4 commit 3ed33c3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/v4l2-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int v4l2_video_std_construct(struct v4l2_standard *vs,
memset(vs, 0, sizeof(struct v4l2_standard));
vs->index = index;
vs->id = id;
if (id & (V4L2_STD_NTSC | V4L2_STD_PAL_M)) {
if (id & V4L2_STD_525_60) {
vs->frameperiod.numerator = 1001;
vs->frameperiod.denominator = 30000;
vs->framelines = 525;
Expand All @@ -110,7 +110,6 @@ int v4l2_video_std_construct(struct v4l2_standard *vs,
return 0;
}


/* ----------------------------------------------------------------- */
/* priority handling */

Expand Down

0 comments on commit 3ed33c3

Please sign in to comment.