aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-29 19:28:15 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-30 20:34:45 +0100
commitc3f9ebf74371b63fba0e7491e61904bbd165cd0f (patch)
treecad6d000dccf25ecea1db16f1befb17f79d13c33 /libavformat/internal.h
parent06d7325ab1fcc009f0183be3a0b0504f6d99edfb (diff)
downloadffmpeg-c3f9ebf74371b63fba0e7491e61904bbd165cd0f.tar.gz
lavf: make av_set_pts_info private.
It's supposed to be called only from (de)muxers.
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 0d8bbe7d96..45736687d3 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -286,4 +286,17 @@ int64_t ff_gen_search(AVFormatContext *s, int stream_index,
int flags, int64_t *ts_ret,
int64_t (*read_timestamp)(struct AVFormatContext *, int , int64_t *, int64_t ));
+/**
+ * Set the pts for a given stream. If the new values would be invalid
+ * (<= 0), it leaves the AVStream unchanged.
+ *
+ * @param s stream
+ * @param pts_wrap_bits number of bits effectively used by the pts
+ * (used for wrap control, 33 is the value for MPEG)
+ * @param pts_num numerator to convert to seconds (MPEG: 1)
+ * @param pts_den denominator to convert to seconds (MPEG: 90000)
+ */
+void avpriv_set_pts_info(AVStream *s, int pts_wrap_bits,
+ unsigned int pts_num, unsigned int pts_den);
+
#endif /* AVFORMAT_INTERNAL_H */