shithub: openh264

Download patch

ref: 7db269f04a159844d5a487cc2884f7de95325344
parent: 94a0eaf1e77fa80b5aa2c10f46ef10d86af758e4
parent: 555bf6340f633fac52b778b953ce97c7009c66e3
author: volvet <[email protected]>
date: Fri Mar 7 19:15:08 EST 2014

Merge pull request #447 from mstorsjo/remove-misleading-cast

Remove a misleading cast

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -166,7 +166,7 @@
       } else if (strTag[0].compare ("SliceMode") == 0) {
         sLayerCtx.sSliceCfg.uiSliceMode	= (SliceMode)atoi (strTag[1].c_str());
       } else if (strTag[0].compare ("SliceSize") == 0) { //SM_DYN_SLICE
-        sLayerCtx.sSliceCfg.sSliceArgument.uiSliceSizeConstraint	= (SliceMode)atoi (strTag[1].c_str());
+        sLayerCtx.sSliceCfg.sSliceArgument.uiSliceSizeConstraint	= atoi (strTag[1].c_str());
         continue;
       } else if (strTag[0].compare ("SliceNum") == 0) {
         sLayerCtx.sSliceCfg.sSliceArgument.uiSliceNum = atoi (strTag[1].c_str());