fftools/ffmpeg: make sure non-lavfi streams are closed on input EOF

This commit is contained in:
Anton Khirnov 2023-04-03 12:04:50 +02:00
parent 862a626c9d
commit 416e2661ea
1 changed files with 1 additions and 0 deletions

View File

@ -3804,6 +3804,7 @@ static int process_input(int file_index)
if (ost->ist == ist &&
(!ost->enc_ctx || ost->enc_ctx->codec_type == AVMEDIA_TYPE_SUBTITLE)) {
OutputFile *of = output_files[ost->file_index];
close_output_stream(ost);
of_output_packet(of, ost->pkt, ost, 1);
}
}