fix: transcoder flush

This commit is contained in:
kieran 2024-11-11 12:46:41 +00:00
parent 2fde3b9c74
commit b66a8db0c6
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -75,7 +75,7 @@ impl Transcoder {
if pkt.is_null() { if pkt.is_null() {
for (_, enc) in &mut self.encoders { for (_, enc) in &mut self.encoders {
for mut new_pkt in enc.encode_frame(ptr::null_mut())? { for mut new_pkt in enc.encode_frame(ptr::null_mut())? {
self.muxer.write_packet(pkt)?; self.muxer.write_packet(new_pkt)?;
av_packet_free(&mut new_pkt); av_packet_free(&mut new_pkt);
} }
} }