Commit 8246c77c authored by Gildas Bazin's avatar Gildas Bazin

* modules/codec/ffmpeg/video_filter.c: fixed resampling check.

parent 0bbafb82
......@@ -171,7 +171,8 @@ static int CheckInit( filter_t *p_filter )
p_filter->fmt_in.video.i_width * p_filter->fmt_in.video.i_height >
p_filter->fmt_out.video.i_width * p_filter->fmt_out.video.i_height;
if( p_sys->i_src_ffmpeg_chroma != PIX_FMT_YUV420P &&
if( p_sys->b_resize &&
p_sys->i_src_ffmpeg_chroma != PIX_FMT_YUV420P &&
p_sys->i_src_ffmpeg_chroma != PIX_FMT_YUVJ420P &&
p_sys->i_dst_ffmpeg_chroma != PIX_FMT_YUV420P &&
p_sys->i_dst_ffmpeg_chroma != PIX_FMT_YUVJ420P )
......
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