]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/utils.c
avformat: Make AVChapter.id an int64_t on next major bump
[ffmpeg] / libavformat / utils.c
index a73f944e6e797fcd3c08879025c27425f6dd21d1..295e676c9c4a2603ce2418bb74e14a7462260bbe 100644 (file)
@@ -4626,7 +4626,11 @@ AVProgram *av_new_program(AVFormatContext *ac, int id)
     return program;
 }
 
+#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)
 {
     AVChapter *chapter = NULL;