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
a44507ac
Commit
a44507ac
authored
Mar 22, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2: remove paranoid code that breaks compressed and 8-bits formats
parent
517f0cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
modules/access/v4l2/demux.c
modules/access/v4l2/demux.c
+0
-9
No files found.
modules/access/v4l2/demux.c
View file @
a44507ac
...
...
@@ -191,7 +191,6 @@ static const uint32_t p_chroma_fallbacks[] =
static
int
InitVideo
(
demux_t
*
demux
,
int
fd
)
{
demux_sys_t
*
sys
=
demux
->
p_sys
;
unsigned
int
i_min
;
enum
v4l2_buf_type
buf_type
;
/* Get device capabilites */
...
...
@@ -400,14 +399,6 @@ static int InitVideo (demux_t *demux, int fd)
es_fmt
.
video
.
i_gmask
=
selected
->
green
;
es_fmt
.
video
.
i_bmask
=
selected
->
blue
;
/* Buggy driver paranoia */
i_min
=
fmt
.
fmt
.
pix
.
width
*
2
;
if
(
fmt
.
fmt
.
pix
.
bytesperline
<
i_min
)
fmt
.
fmt
.
pix
.
bytesperline
=
i_min
;
i_min
=
fmt
.
fmt
.
pix
.
bytesperline
*
fmt
.
fmt
.
pix
.
height
;
if
(
fmt
.
fmt
.
pix
.
sizeimage
<
i_min
)
fmt
.
fmt
.
pix
.
sizeimage
=
i_min
;
/* Init I/O method */
switch
(
sys
->
io
)
{
...
...
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