aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-05 16:56:17 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-05 17:30:13 +0100
commit1565a9a9e90cc2fe6295b51e4cb9240247d40a30 (patch)
tree60b833b498098472c6b39e2a9c0f50edbf18ef08 /libavformat/internal.h
parentdc1b0a54f9fe498c6d30fefe582b73844636ef07 (diff)
downloadffmpeg-1565a9a9e90cc2fe6295b51e4cb9240247d40a30.tar.gz
avformat/utils: factor rfps calculation out
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 8e53cc54a1..edc6a11685 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -371,4 +371,14 @@ int ff_generate_avci_extradata(AVStream *st);
*/
int ff_alloc_extradata(AVCodecContext *avctx, int size);
+/**
+ * add frame for rfps calculation.
+ *
+ * @param dts timestamp of the i-th frame
+ * @return 0 if OK, AVERROR_xxx on error
+ */
+int ff_rfps_add_frame(AVFormatContext *ic, AVStream *st, int64_t dts);
+
+void ff_rfps_calculate(AVFormatContext *ic);
+
#endif /* AVFORMAT_INTERNAL_H */