Commit 38358968 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Thomas Daede

api: Pass color_description from encoder config to Sequence

This allows the color_config to be written down from the cli.

Related to #910.
parent ae171e5b
......@@ -463,13 +463,16 @@ impl Context {
fn get_frame_properties(&mut self, idx: u64) -> Result<FrameInvariants, FrameInvariants> {
if idx == 0 {
let mut seq = Sequence::new(&self.config.video_info);
seq.color_description = self.config.enc.color_description;
// The first frame will always be a key frame
let fi = FrameInvariants::new_key_frame(
&FrameInvariants::new(
self.config.video_info.width,
self.config.video_info.height,
self.config.enc,
Sequence::new(&self.config.video_info)
seq
),
0
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment