Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
45f78060
Commit
45f78060
authored
Jun 16, 2013
by
Rémi Denis-Courmont
Browse files
v4l2: respect line pitch specified by the device driver (fixes #8802)
parent
86401c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/access/v4l2/demux.c
View file @
45f78060
...
...
@@ -393,7 +393,11 @@ static int InitVideo (demux_t *demux, int fd, uint32_t caps)
es_fmt
.
video
.
i_rmask
=
selected
->
red
;
es_fmt
.
video
.
i_gmask
=
selected
->
green
;
es_fmt
.
video
.
i_bmask
=
selected
->
blue
;
es_fmt
.
video
.
i_width
=
fmt
.
fmt
.
pix
.
width
;
es_fmt
.
video
.
i_visible_width
=
fmt
.
fmt
.
pix
.
width
;
if
(
fmt
.
fmt
.
pix
.
bytesperline
!=
0
&&
selected
->
bpp
!=
0
)
es_fmt
.
video
.
i_width
=
fmt
.
fmt
.
pix
.
bytesperline
/
selected
->
bpp
;
else
es_fmt
.
video
.
i_width
=
fmt
.
fmt
.
pix
.
width
;
es_fmt
.
video
.
i_height
=
fmt
.
fmt
.
pix
.
height
;
es_fmt
.
video
.
i_frame_rate
=
parm
.
parm
.
capture
.
timeperframe
.
denominator
;
es_fmt
.
video
.
i_frame_rate_base
=
parm
.
parm
.
capture
.
timeperframe
.
numerator
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment