Force width to be multiple of 16 on Mac OS X when we create a part desktop streaming device.

cusax-fix
Sebastien Vincent 15 years ago
parent 48581b2a10
commit ab2a92f0a6

@ -951,6 +951,17 @@ public MediaDevice getMediaDeviceForPartialDesktopStreaming(
((MediaDeviceImpl)mediaDevice).getCaptureDeviceInfo().getLocator();
int display = Integer.parseInt(locator.getRemainder());
/* on Mac OS X, width have to be a multiple of 16 */
if(OSUtils.IS_MAC)
{
int mod = width % 16;
if(mod > 0)
{
width += mod;
}
}
Format formats[] = new Format[]
{
new AVFrameFormat(

Loading…
Cancel
Save