shithub: openh264

Download patch

ref: fc811a80fbd5eac1071d139afef2c4cc2554e91c
parent: 843955bc060b017d4e6a48cb4f7bb8c98cb807e9
parent: c8afd15681c3200fb1ba8024f554bff933b12f57
author: ruil2 <[email protected]>
date: Sun Nov 9 04:36:21 EST 2014

Merge pull request #1512 from mstorsjo/add-float-cast

Add a cast when converting from double to float

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -369,7 +369,7 @@
 
     memcpy (pDecoderStatistics, &m_pDecContext->sDecoderStatistics, sizeof (SDecoderStatistics));
 
-    pDecoderStatistics->fAverageFrameSpeedInMs = (m_pDecContext->dDecTime) /
+    pDecoderStatistics->fAverageFrameSpeedInMs = (float) (m_pDecContext->dDecTime) /
         (m_pDecContext->sDecoderStatistics.uiDecodedFrameCount);
     memset (&m_pDecContext->sDecoderStatistics, 0, sizeof (SDecoderStatistics));
     m_pDecContext->dDecTime = 0;