From 3f08333c2aab8da835bfbe00199e7334c4bc7153 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Nov 2020 13:55:28 +0100 Subject: CFDataGetLength returns CFIndex, not long Change-Id: I341ef5abfc001e47d86a03960022b018aac8e35f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105741 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- avmedia/source/macavf/framegrabber.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'avmedia') diff --git a/avmedia/source/macavf/framegrabber.mm b/avmedia/source/macavf/framegrabber.mm index 31566bef3876..7803fa4f1063 100644 --- a/avmedia/source/macavf/framegrabber.mm +++ b/avmedia/source/macavf/framegrabber.mm @@ -71,7 +71,7 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe CGImageDestinationAddImage( pCGImgDest, pCGImage, nullptr ); CGImageDestinationFinalize( pCGImgDest ); CFRelease( pCGImgDest ); - const long nBitmapLen = CFDataGetLength( pCFData ); + const CFIndex nBitmapLen = CFDataGetLength( pCFData ); UInt8 * pBitmapBytes = const_cast(CFDataGetBytePtr( pCFData )); // convert the image into the return-value type which is a graphic::XGraphic -- cgit