Commit 57d593b4 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

chroma:i420_nv12: only allow NV12 output

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c98ce463
......@@ -60,6 +60,9 @@ static int Create( vlc_object_t *p_this )
{
filter_t *p_filter = (filter_t *)p_this;
if ( p_filter->fmt_out.video.i_chroma != VLC_CODEC_NV12 )
return -1;
if( p_filter->fmt_in.video.i_width & 1
|| p_filter->fmt_in.video.i_height & 1 )
{
......
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