ffmpeg: check ost->finished in check_output_constraints()