summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc.h b/misc.h
index 5e32e39..f5ff4b3 100644
--- a/misc.h
+++ b/misc.h
@@ -107,7 +107,9 @@ static inline void Syslog(const int level, const char *format, ...)
#define Debug(level, fmt...) /* disabled */
#endif
-#ifdef AV_NOPTS_VALUE
+#ifndef AV_NOPTS_VALUE
+#define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
+#endif
/**
** Nice time-stamp string.
@@ -130,8 +132,6 @@ static inline const char *Timestamp2String(int64_t ts)
return buf[idx];
}
-#endif
-
/**
** Get ticks in ms.
**