fftools/ffmpeg: parse forced keyframes in of_open()

Allows to remove the ugly of_get_chapters() wrapper.
This commit is contained in:
Anton Khirnov
2022-11-17 14:22:58 +01:00
parent efe4423627
commit 334e52e094
4 changed files with 106 additions and 99 deletions

View File

@@ -736,11 +736,3 @@ int64_t of_filesize(OutputFile *of)
Muxer *mux = mux_from_of(of);
return atomic_load(&mux->last_filesize);
}
AVChapter * const *
of_get_chapters(OutputFile *of, unsigned int *nb_chapters)
{
Muxer *mux = mux_from_of(of);
*nb_chapters = mux->fc->nb_chapters;
return mux->fc->chapters;
}