[vlc-commits] screen: set SAR values on Windows and Mac to match the XCB implementation (refs #14507)
Felix Paul Kühne
git at videolan.org
Mon Jul 20 18:41:46 CEST 2015
vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 20 18:35:58 2015 +0200| [8ac02ba10312219b5571209f33ccb7454e581f00] | committer: Felix Paul Kühne
screen: set SAR values on Windows and Mac to match the XCB implementation (refs #14507)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=8ac02ba10312219b5571209f33ccb7454e581f00
---
modules/access/screen/mac.c | 1 +
modules/access/screen/win32.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/modules/access/screen/mac.c b/modules/access/screen/mac.c
index 698e362..af7988b 100644
--- a/modules/access/screen/mac.c
+++ b/modules/access/screen/mac.c
@@ -121,6 +121,7 @@ int screen_InitCapture(demux_t *p_demux)
p_sys->fmt.video.i_rmask = 0x00ff0000;
p_sys->fmt.video.i_gmask = 0x0000ff00;
p_sys->fmt.video.i_bmask = 0x000000ff;
+ p_sys->fmt.video.i_sar_num = p_sys->fmt.video.i_sar_den = 1;
return VLC_SUCCESS;
}
diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index 0092df9..4a6077c 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -100,6 +100,7 @@ int screen_InitCapture( demux_t *p_demux )
p_sys->fmt.video.i_height = GetDeviceCaps( p_data->hdc_src, VERTRES );
p_sys->fmt.video.i_bits_per_pixel = i_bits_per_pixel;
p_sys->fmt.video.i_chroma = i_chroma;
+ p_sys->fmt.video.i_sar_num = p_sys->fmt.video.i_sar_den = 1;
switch( i_chroma )
{
More information about the vlc-commits
mailing list