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
eb71a005
Commit
eb71a005
authored
Oct 05, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reject > 8 bits per pixel colorspace in gradfun/grain/transform video filters.
parent
f094d815
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
modules/video_filter/gradfun.c
modules/video_filter/gradfun.c
+1
-1
modules/video_filter/grain.c
modules/video_filter/grain.c
+1
-1
modules/video_filter/transform.c
modules/video_filter/transform.c
+1
-1
No files found.
modules/video_filter/gradfun.c
View file @
eb71a005
...
...
@@ -112,7 +112,7 @@ static int Open(vlc_object_t *object)
const
vlc_fourcc_t
fourcc
=
filter
->
fmt_in
.
video
.
i_chroma
;
const
vlc_chroma_description_t
*
chroma
=
vlc_fourcc_GetChromaDescription
(
fourcc
);
if
(
!
chroma
||
chroma
->
plane_count
<
3
)
{
if
(
!
chroma
||
chroma
->
plane_count
<
3
||
chroma
->
pixel_size
!=
1
)
{
msg_Err
(
filter
,
"Unsupported chroma (%4.4s)"
,
(
char
*
)
&
fourcc
);
return
VLC_EGENERIC
;
}
...
...
modules/video_filter/grain.c
View file @
eb71a005
...
...
@@ -382,7 +382,7 @@ static int Open(vlc_object_t *object)
const
vlc_chroma_description_t
*
chroma
=
vlc_fourcc_GetChromaDescription
(
filter
->
fmt_in
.
video
.
i_chroma
);
if
(
!
chroma
||
chroma
->
plane_count
<
3
)
{
if
(
!
chroma
||
chroma
->
plane_count
<
3
||
chroma
->
pixel_size
!=
1
)
{
msg_Err
(
filter
,
"Unsupported chroma (%4.4s)"
,
(
char
*
)
&
(
filter
->
fmt_in
.
video
.
i_chroma
));
return
VLC_EGENERIC
;
...
...
modules/video_filter/transform.c
View file @
eb71a005
...
...
@@ -188,7 +188,7 @@ static int Open(vlc_object_t *object)
const
vlc_chroma_description_t
*
chroma
=
vlc_fourcc_GetChromaDescription
(
src
->
i_chroma
);
if
(
!
chroma
||
chroma
->
plane_count
<
3
)
{
if
(
!
chroma
||
chroma
->
plane_count
<
3
||
chroma
->
pixel_size
!=
1
)
{
msg_Err
(
filter
,
"Unsupported chroma (%4.4s)"
,
(
char
*
)
&
src
->
i_chroma
);
/* TODO support packed and rgb */
return
VLC_EGENERIC
;
...
...
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