Commit 6227263f authored by gbazin's avatar gbazin

* modules/access/v4l/v4l.c: in v4l, RGB24 really is BGR24. Changed aspect ratio to 4:3.

parent 8ca6f29c
......@@ -351,6 +351,16 @@ static int Open( vlc_object_t *p_this )
es_format_Init( &fmt, VIDEO_ES, p_sys->i_fourcc );
fmt.video.i_width = p_sys->i_width;
fmt.video.i_height = p_sys->i_height;
fmt.video.i_aspect = 4 * VOUT_ASPECT_FACTOR / 3;
/* Setup rgb mask for RGB formats */
if( p_sys->i_fourcc == VLC_FOURCC('R','V','2','4') )
{
/* This is in BGR format */
fmt.video.i_bmask = 0x00ff0000;
fmt.video.i_gmask = 0x0000ff00;
fmt.video.i_rmask = 0x000000ff;
}
msg_Dbg( p_demux, "added new video es %4.4s %dx%d",
(char*)&fmt.i_codec, fmt.video.i_width, fmt.video.i_height );
......@@ -1056,7 +1066,6 @@ static int OpenVideoDev( demux_t *p_demux, char *psz_device )
break;
}
}
}
else
{
......
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