summaryrefslogtreecommitdiffstats
path: root/thirdparties/mac/include/libavutil/timestamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparties/mac/include/libavutil/timestamp.h')
-rwxr-xr-xthirdparties/mac/include/libavutil/timestamp.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/thirdparties/mac/include/libavutil/timestamp.h b/thirdparties/mac/include/libavutil/timestamp.h
index c7348d8..6b46998 100755
--- a/thirdparties/mac/include/libavutil/timestamp.h
+++ b/thirdparties/mac/include/libavutil/timestamp.h
@@ -38,8 +38,12 @@
*/
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);
+ if (ts == AV_NOPTS_VALUE) {
+ snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
+ }
+ else {
+ snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64"", ts);
+ }
return buf;
}
@@ -60,8 +64,12 @@ static inline char *av_ts_make_string(char *buf, int64_t ts)
*/
static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb)
{
- if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
- else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts);
+ if (ts == AV_NOPTS_VALUE) {
+ snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS");
+ }
+ else {
+ snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts);
+ }
return buf;
}
OpenPOWER on IntegriCloud