Commit 8b148da3 authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

Neon yuv->rgb: check if CPU supports NEON

(cherry picked from commit 14b6dc70)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5221a770
......@@ -125,6 +125,9 @@ static int Open (vlc_object_t *obj)
{
filter_t *filter = (filter_t *)obj;
if (!(vlc_CPU() & CPU_CAPABILITY_NEON))
return VLC_EGENERIC;
if (((filter->fmt_in.video.i_width | filter->fmt_in.video.i_height) & 1)
|| (filter->fmt_in.video.i_width != filter->fmt_out.video.i_width)
|| (filter->fmt_in.video.i_height != filter->fmt_out.video.i_height))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment