shithub: openh264

Download patch

ref: e4220b7b55925ff2feacc2f5944dc528629b57ad
parent: 1ba24912c758af31bbc5e62faeccf24a372febca
parent: b76714719e19bd01ada643305c65ea13cdb5f0c0
author: ruil2 <[email protected]>
date: Wed Jun 25 10:44:53 EDT 2014

Merge pull request #1010 from mstorsjo/fix-log-format

Print an intX_t by casting to int64_t

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -415,8 +415,8 @@
     }
     if (iUsedBits > pBs->iBits) { //When BS incomplete, as long as find it, SHOULD stop decoding to avoid mosaic or crash.
       WelsLog (pCtx, WELS_LOG_WARNING,
-               "WelsDecodeSlice()::::pBs incomplete, iUsedBits:%d > pBs->iBits:%d, MUST stop decoding.\n",
-               iUsedBits, pBs->iBits);
+               "WelsDecodeSlice()::::pBs incomplete, iUsedBits:%"PRId64" > pBs->iBits:%d, MUST stop decoding.\n",
+               (int64_t) iUsedBits, pBs->iBits);
       return -1;
     }
     iMbX = iNextMbXyIndex % pCurLayer->iMbWidth;