Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
45f78060
Commit
45f78060
authored
Jun 16, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2: respect line pitch specified by the device driver (fixes #8802)
parent
86401c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
modules/access/v4l2/demux.c
modules/access/v4l2/demux.c
+5
-1
No files found.
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
Markdown
is supported
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