Commit 77cfcb6a authored by Oka Motofumi's avatar Oka Motofumi Committed by Fiona Glaser

Fix crash in --demuxer y4m with unsupported colorspace

parent 30829c0c
......@@ -173,7 +173,7 @@ static int open_file( char *psz_filename, hnd_t *p_handle, video_info_t *info, c
if( colorspace == X264_CSP_NONE )
colorspace = X264_CSP_I420;
FAIL_IF_ERROR( colorspace <= X264_CSP_NONE && colorspace >= X264_CSP_MAX, "colorspace unhandled\n" )
FAIL_IF_ERROR( colorspace <= X264_CSP_NONE || colorspace >= X264_CSP_MAX, "colorspace unhandled\n" )
info->thread_safe = 1;
info->num_frames = 0;
......
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