Message ID | 903556ed-01e0-4527-8368-490f64b3a9f3@jkqxz.net |
---|---|
State | Accepted |
Commit | a2c912c3b6b833f2aacf414264c566f86f0a4e7c |
Headers | show |
On Wed, Aug 31, 2016 at 09:01:57PM +0100, Mark Thompson wrote: > Including this header in a C++11 program (inside extern "C") will > throw an error because it looks like a user-defined literal. Add a > space between the two tokens to avoid the problem. > --- > Noted by mcjack in #ffmpeg. LGTM thx [...]
On 31/08/16 21:31, Michael Niedermayer wrote: > On Wed, Aug 31, 2016 at 09:01:57PM +0100, Mark Thompson wrote: >> Including this header in a C++11 program (inside extern "C") will >> throw an error because it looks like a user-defined literal. Add a >> space between the two tokens to avoid the problem. >> --- >> Noted by mcjack in #ffmpeg. > > LGTM > > thx Pushed. Thanks, - Mark
diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h index f010a7e..e082f01 100644 --- a/libavutil/timestamp.h +++ b/libavutil/timestamp.h @@ -43,7 +43,7 @@ static inline char *av_ts_make_string(char *buf, int64_t ts) { if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); - else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64, ts); + else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%" PRId64, ts); return buf; }