Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
908a5134
Commit
908a5134
authored
Jun 23, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
invert: check supported chroma (fixes #8840, fixes #8841)
parent
fe44d66b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/video_filter/invert.c
modules/video_filter/invert.c
+11
-1
No files found.
modules/video_filter/invert.c
View file @
908a5134
...
@@ -64,9 +64,19 @@ vlc_module_end ()
...
@@ -64,9 +64,19 @@ vlc_module_end ()
static
int
Create
(
vlc_object_t
*
p_this
)
static
int
Create
(
vlc_object_t
*
p_this
)
{
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
vlc_fourcc_t
fourcc
=
p_filter
->
fmt_in
.
video
.
i_chroma
;
p_filter
->
pf_video_filter
=
Filter
;
if
(
fourcc
==
VLC_CODEC_YUVP
||
fourcc
==
VLC_CODEC_RGBP
||
fourcc
==
VLC_CODEC_RGBA
)
return
VLC_EGENERIC
;
const
vlc_chroma_description_t
*
p_chroma
=
vlc_fourcc_GetChromaDescription
(
fourcc
);
if
(
p_chroma
==
NULL
||
p_chroma
->
pixel_size
*
8
!=
p_chroma
->
pixel_bits
)
return
VLC_EGENERIC
;
p_filter
->
pf_video_filter
=
Filter
;
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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