Commit 65ae93ce authored by Felix Abecassis's avatar Felix Abecassis Committed by Jean-Baptiste Kempf

yuv_rgb: bail out if input/output orientation does not match

(cherry picked from commit 19b9baa2b03af847ab0afc91e78c3ccd3e538cb4)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 068be492
...@@ -139,7 +139,8 @@ static int Open (vlc_object_t *obj) ...@@ -139,7 +139,8 @@ static int Open (vlc_object_t *obj)
if (((filter->fmt_in.video.i_width | filter->fmt_in.video.i_height) & 1) 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_width != filter->fmt_out.video.i_width)
|| (filter->fmt_in.video.i_height != filter->fmt_out.video.i_height)) || (filter->fmt_in.video.i_height != filter->fmt_out.video.i_height)
|| (filter->fmt_in.video.orientation != filter->fmt_out.video.orientation))
return VLC_EGENERIC; return VLC_EGENERIC;
switch (filter->fmt_out.video.i_chroma) switch (filter->fmt_out.video.i_chroma)
......
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