fix: setup decoder

This commit is contained in:
kieran 2024-11-11 11:47:12 +00:00
parent e4ec570239
commit b12d0d07c4
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -39,7 +39,7 @@ impl Transcoder {
/// a pre-configured output encoder /// a pre-configured output encoder
pub unsafe fn transcode_stream( pub unsafe fn transcode_stream(
&mut self, &mut self,
in_stream: StreamInfoChannel, in_stream: &StreamInfoChannel,
encoder_out: Encoder, encoder_out: Encoder,
) -> Result<()> { ) -> Result<()> {
let dst_stream = self.muxer.add_stream_encoder(&encoder_out)?; let dst_stream = self.muxer.add_stream_encoder(&encoder_out)?;
@ -47,6 +47,7 @@ impl Transcoder {
in_stream.index as i32, in_stream.index as i32,
encoder_out.with_stream_index((*dst_stream).index), encoder_out.with_stream_index((*dst_stream).index),
); );
self.decoder.setup_decoder(in_stream, None)?;
Ok(()) Ok(())
} }