]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/matroskaenc.c
avformat: Switch AVChapter.id to 64bits
[ffmpeg] / libavformat / matroskaenc.c
index b36e86ecb1d67d6c92f68fe54c36f12cc0a6c830..c3d895f931886c765457755aba01da7e66aad230 100644 (file)
@@ -1671,11 +1671,7 @@ static int mkv_write_chapters(AVFormatContext *s)
         int64_t chapterstart = av_rescale_q(c->start, c->time_base, scale);
         int64_t chapterend   = av_rescale_q(c->end,   c->time_base, scale);
         const AVDictionaryEntry *t;
-#if FF_API_CHAPTER_ID_INT
-        uint64_t uid = create_new_ids ? i + 1ULL : (uint32_t)c->id;
-#else
         uint64_t uid = create_new_ids ? i + 1ULL : c->id;
-#endif
         if (chapterstart < 0 || chapterstart > chapterend || chapterend < 0) {
             av_log(s, AV_LOG_ERROR,
                    "Invalid chapter start (%"PRId64") or end (%"PRId64").\n",