summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-03 21:34:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-03 21:34:43 +0200
commitde707bc8bdfff92a1905169ba6054034d464dbb5 (patch)
tree4115aae2f3c5172d91d752c157e2a76be43c345c /libavformat/internal.h
parent05e5a24f79fedc36a1addf8a8ed36e9ad5c42d8c (diff)
mux/nut: factorize ff_choose_timebase() out of nut
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 402e155e86..2689b2f48c 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -354,5 +354,13 @@ void ff_compute_frame_duration(int *pnum, int *pden, AVStream *st,
int ff_get_audio_frame_size(AVCodecContext *enc, int size, int mux);
+/**
+ * Chooses a timebase for muxing the specified stream.
+ *
+ * The choosen timebase allows sample accurate timestamps based
+ * on the framerate or sample rate for audio streams. It also is
+ * at least as precisse as 1/min_precission would be.
+ */
+AVRational ff_choose_timebase(AVFormatContext *s, AVStream *st, int min_precission);
#endif /* AVFORMAT_INTERNAL_H */