summaryrefslogtreecommitdiff
path: root/libavutil/timestamp.h
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2016-08-31 20:48:45 +0100
committerMark Thompson <sw@jkqxz.net>2016-09-01 20:01:28 +0100
commita2c912c3b6b833f2aacf414264c566f86f0a4e7c (patch)
tree34cf6e90dc2a63b3b06a35501931b14fb77d333d /libavutil/timestamp.h
parent5d054a1ac45248db9fd9ba4ea192147ad35aa54c (diff)
lavu/timestamp: Avoid C++-unfriendly code in user header
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.
Diffstat (limited to 'libavutil/timestamp.h')
-rw-r--r--libavutil/timestamp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/timestamp.h b/libavutil/timestamp.h
index f010a7ee38..e082f01b40 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;
}