shithub: openh264

Download patch

ref: fe766fec2f08942c7489357b7e13aab6b7cbd0a2
parent: 278597be2fc86273547d97394635c7233211e22d
parent: 8e8972b6e8e65a6e887c28d308700344ddc4223a
author: volvet <[email protected]>
date: Tue Feb 18 10:33:04 EST 2014

Merge pull request #296 from ruil2/build_osx

fix build fail on osx

--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -250,8 +250,8 @@
   while (iIdxSpatial < iSpatialLayerNum) {
 
     pDlp->uiProfileIdc		= uiProfileIdc;
-    sSpatialLayers[iIdxSpatial].fFrameRate	= WELS_CLIP3 (sSpatialLayers[iIdxSpatial].fFrameRate,
-        MIN_FRAME_RATE, pCodingParam.fMaxFrameRate);
+    sSpatialLayers[iIdxSpatial].fFrameRate	= WELS_CLIP3 (pCodingParam.fMaxFrameRate,
+        MIN_FRAME_RATE, MAX_FRAME_RATE);
     pDlp->fInputFrameRate	=
       pDlp->fOutputFrameRate	= WELS_CLIP3 (sSpatialLayers[iIdxSpatial].fFrameRate, MIN_FRAME_RATE,
                                             MAX_FRAME_RATE);