[Libreoffice-commits] core.git: avmedia/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 25 20:41:42 UTC 2020


 avmedia/source/win/framegrabber.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit ff75b172cc86374969a986ee94cac0931d95a5cd
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Nov 25 17:50:21 2020 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Nov 25 21:40:56 2020 +0100

    BITMAPINFOHEADER::biWidth,biHeight are of type LONG
    
    Change-Id: Iba16ea38867499d2963e389dffec4e72daf1bcad
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106605
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/avmedia/source/win/framegrabber.cxx b/avmedia/source/win/framegrabber.cxx
index 4fd0d8b519b2..249648f04f96 100644
--- a/avmedia/source/win/framegrabber.cxx
+++ b/avmedia/source/win/framegrabber.cxx
@@ -138,7 +138,8 @@ uno::Reference< graphic::XGraphic > SAL_CALL FrameGrabber::grabFrame( double fMe
             ( fLength > 0.0 ) && ( fMediaTime >= 0.0 ) && ( fMediaTime <= fLength ) )
         {
             AM_MEDIA_TYPE   aMediaType;
-            long            nWidth = 0, nHeight = 0, nSize = 0;
+            LONG            nWidth = 0, nHeight = 0;
+            long            nSize = 0;
 
             if( SUCCEEDED( pDet->get_StreamMediaType( &aMediaType ) ) )
             {


More information about the Libreoffice-commits mailing list