[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:37:50 CEST 2015
vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 20 18:35:58 2015 +0200| [ad410a20c295fb52474034582ef6ccd33991853b] | 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=ad410a20c295fb52474034582ef6ccd33991853b
---
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..83164f0 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 = 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..c8f522c 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 = fmt.video.i_sar_den = 1;
switch( i_chroma )
{
More information about the vlc-commits
mailing list