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

@ -31,6 +31,8 @@ pub mod format;
pub use format::format::Format;
#[cfg(feature = "format")]
pub use format::stream::{Stream, StreamMut};
#[cfg(feature = "format")]
pub use format::chapter::{Chapter, ChapterMut};
#[cfg(feature = "codec")]
pub mod codec;