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

pull/389/head
Anton Khirnov 2 years ago
parent 862a626c9d
commit 416e2661ea
  1. 1
      fftools/ffmpeg.c

@ -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);
}
}

Loading…
Cancel
Save