Commit e67115c0 authored by Laurent Aimar's avatar Laurent Aimar

Do not check rgb masks for YUV in GetFfmpegChroma.

parent 9230cef6
......@@ -134,9 +134,12 @@ int GetFfmpegChroma( int *i_ffmpeg_chroma, const video_format_t fmt )
{
if( chroma_table[i].i_chroma == fmt.i_chroma )
{
if( chroma_table[i].i_rmask == fmt.i_rmask &&
if( ( chroma_table[i].i_rmask == 0 &&
chroma_table[i].i_gmask == 0 &&
chroma_table[i].i_bmask == 0 ) ||
( chroma_table[i].i_rmask == fmt.i_rmask &&
chroma_table[i].i_gmask == fmt.i_gmask &&
chroma_table[i].i_bmask == fmt.i_bmask )
chroma_table[i].i_bmask == fmt.i_bmask ) )
{
*i_ffmpeg_chroma = chroma_table[i].i_chroma_id;
return VLC_SUCCESS;
......
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