From b12d0d07c44bfcb8f5cf44930a23194fcacfd5bc Mon Sep 17 00:00:00 2001 From: kieran Date: Mon, 11 Nov 2024 11:47:12 +0000 Subject: [PATCH] fix: setup decoder --- src/transcode.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transcode.rs b/src/transcode.rs index 04b0140..c0f1d38 100644 --- a/src/transcode.rs +++ b/src/transcode.rs @@ -39,7 +39,7 @@ impl Transcoder { /// a pre-configured output encoder pub unsafe fn transcode_stream( &mut self, - in_stream: StreamInfoChannel, + in_stream: &StreamInfoChannel, encoder_out: Encoder, ) -> Result<()> { let dst_stream = self.muxer.add_stream_encoder(&encoder_out)?; @@ -47,6 +47,7 @@ impl Transcoder { in_stream.index as i32, encoder_out.with_stream_index((*dst_stream).index), ); + self.decoder.setup_decoder(in_stream, None)?; Ok(()) }