History

Use a standard macro for 64 bit printf conversion specifiers

This avoids duplicating the printf line with an ifdef every time a 64 bit number needs to be printed.

Martin Storsjö committed 12 years ago

Commit 3c7dde91 parent c7d98a83 files · +6 −15Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 3 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+2−10
@@ -1234,11 +1234,7 @@ int32_t AdjustBaseLayer (sWelsEncCtx* pCtx) { · 1233 unmodified lines
12341234 iT0 = WelsTime() - iT0;
12351235 if (pCtx->pSliceThreading->pFSliceDiff) {
12361236 fprintf (pCtx->pSliceThreading->pFSliceDiff,
1237−#ifdef _WIN32
1238− "%6I64d us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
1239−#else
1240− "%6lld us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
1241−#endif//WIN32
1237+ "%6"PRId64" us adjust time at base spatial layer, iNeedAdj %d, DynamicAdjustSlicing()\n",
12421238 iT0, iNeedAdj);
12431239 }
12441240 #endif//MT_DEBUG
@@ -1285,11 +1281,7 @@ int32_t AdjustEnhanceLayer (sWelsEncCtx* pCtx, int32_t iCurDid) { · 40 unmodified lines
12851281 iT1 = WelsTime() - iT1;
12861282 if (pCtx->pSliceThreading->pFSliceDiff) {
12871283 fprintf (pCtx->pSliceThreading->pFSliceDiff,
1288−#ifdef _WIN32
1289− "%6I64d us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
1290−#else
1291− "%6lld us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
1292−#endif//WIN32
1284+ "%6"PRId64" us adjust time at spatial layer %d, iNeedAdj %d, DynamicAdjustSlicing()\n",
12931285 iT1, iCurDid, iNeedAdj);
12941286 }
12951287 #endif//MT_DEBUG

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t