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
Gautam Chitnis
web-ui-redesign
Commits
71a183b9
Commit
71a183b9
authored
Mar 31, 2007
by
dionoea
Browse files
Check the input chroma. (We only want to work on I420 for the moment)
parent
4d708a51
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/erase.c
View file @
71a183b9
...
...
@@ -174,6 +174,20 @@ static picture_t *Filter( filter_t *p_filter, picture_t *p_pic )
picture_t
*
p_outpic
;
if
(
!
p_pic
)
return
NULL
;
switch
(
p_pic
->
format
.
i_chroma
)
{
case
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
):
case
VLC_FOURCC
(
'I'
,
'Y'
,
'U'
,
'V'
):
case
VLC_FOURCC
(
'J'
,
'4'
,
'2'
,
'0'
):
case
VLC_FOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
):
break
;
default:
msg_Warn
(
p_filter
,
"Unsupported input chroma (%4s)"
,
(
char
*
)
&
(
p_pic
->
format
.
i_chroma
)
);
if
(
p_pic
->
pf_release
)
p_pic
->
pf_release
(
p_pic
);
return
NULL
;
}
p_outpic
=
p_filter
->
pf_vout_buffer_new
(
p_filter
);
if
(
!
p_outpic
)
...
...
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