format: add support for Chapters

Read chapters from an input context and add chapters to an output context.

Note: unlike avformat_new_stream, the equivalent function for chapter is private:
avpriv_new_chapter (part of libavformat/internal.h). I couldn't find any other
solution but re-implementing it in format::context::output::add_chapter.
This commit is contained in:
fengalin
2017-07-22 21:22:26 +02:00
committed by meh
parent d29deedad9
commit 28b7a82ac1
8 changed files with 381 additions and 2 deletions

View File

@ -4,6 +4,8 @@ use ::util::interrupt;
pub mod stream;
pub mod chapter;
pub mod context;
pub use self::context::Context;