fix: transcoder flush
This commit is contained in:
parent
2fde3b9c74
commit
b66a8db0c6
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user