summaryrefslogtreecommitdiff
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-16 08:29:59 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-19 02:36:58 +0100
commite318438f2f30525d8baca2b5683aa9898d0c56f7 (patch)
treebdea751e87591c0635fd4c8eb04280f6556276ea /libavformat/internal.h
parente1e6a5c8a515afa488faee3200666ce0f14ea5eb (diff)
avformat: Make AVChapter.id an int64_t on next major bump
64 bits are needed in order to retain the uid values of Matroska chapters; the type is kept signed because the semantics of NUT chapters depend upon whether the id is > 0 or < 0. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 96902b818c..3c6b2921c1 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -560,7 +560,11 @@ void ff_configure_buffers_for_index(AVFormatContext *s, int64_t time_tolerance);
*
* @return AVChapter or NULL on error
*/
+#if FF_API_CHAPTER_ID_INT
AVChapter *avpriv_new_chapter(AVFormatContext *s, int id, AVRational time_base,
+#else
+AVChapter *avpriv_new_chapter(AVFormatContext *s, int64_t id, AVRational time_base,
+#endif
int64_t start, int64_t end, const char *title);
/**